pronounss/scripts/migrate/007_hashed_avatars.sql

18 lines
434 B
MySQL
Raw Normal View History

-- 2023-03-13: Change avatar URLs to hashes
2023-08-16 03:30:34 +02:00
-- +migrate Up
alter table users drop column avatar_urls;
alter table members drop column avatar_urls;
alter table users add column avatar text;
alter table members add column avatar text;
2023-08-16 03:30:34 +02:00
-- +migrate Down
alter table users drop column avatar;
alter table members drop column avatar;
alter table users add column avatar_urls text[];
alter table members add column avatar_urls text[];