mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
chore: move migrations to rust
also adds some basic test seed data
This commit is contained in:
parent
277bfebb33
commit
47c5990218
66 changed files with 173 additions and 10 deletions
7
crates/migrate/data/migrations/39.sql
Normal file
7
crates/migrate/data/migrations/39.sql
Normal 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;
|
||||
Loading…
Add table
Add a link
Reference in a new issue