2024-11-10 04:29:06 +09:00
|
|
|
-- database version 46
|
2024-11-09 11:44:48 -07:00
|
|
|
-- adds banner privacy
|
|
|
|
|
|
|
|
|
|
alter table members add column banner_privacy int not null default 1 check (banner_privacy = ANY (ARRAY[1,2]));
|
|
|
|
|
alter table groups add column banner_privacy int not null default 1 check (banner_privacy = ANY (ARRAY[1,2]));
|
|
|
|
|
alter table systems add column banner_privacy int not null default 1 check (banner_privacy = ANY (ARRAY[1,2]));
|
|
|
|
|
|
|
|
|
|
update members set banner_privacy = 2 where description_privacy = 2;
|
|
|
|
|
update groups set banner_privacy = 2 where description_privacy = 2;
|
|
|
|
|
update systems set banner_privacy = 2 where description_privacy = 2;
|
|
|
|
|
|
2024-11-10 04:29:06 +09:00
|
|
|
update info set schema_version = 46;
|