fix: add constraints for system name and avatar privacy (#579)

Merges PluralKit/PluralKit#579
This commit is contained in:
rladenson 2023-08-10 18:06:23 +12:00 committed by Iris System
parent e58b3c7274
commit deeb3ad3a4
2 changed files with 8 additions and 1 deletions

View file

@ -0,0 +1,7 @@
-- database version 39
-- add missing privacy constraints
alter table systems add constraint systems_name_privacy_check check (name_privacy = ANY (ARRAY[1,2]));
alter table systems add constraint systems_avatar_privacy_check check (avatar_privacy = ANY (ARRAY[1,2]));
update info set schema_version = 39;