mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
feat: premium ID changes
Some checks failed
Build and push Docker image / .net docker build (push) Has been cancelled
.net checks / run .net tests (push) Has been cancelled
.net checks / dotnet-format (push) Has been cancelled
Build and push Rust service Docker images / rust docker build (push) Has been cancelled
rust checks / cargo fmt (push) Has been cancelled
Some checks failed
Build and push Docker image / .net docker build (push) Has been cancelled
.net checks / run .net tests (push) Has been cancelled
.net checks / dotnet-format (push) Has been cancelled
Build and push Rust service Docker images / rust docker build (push) Has been cancelled
rust checks / cargo fmt (push) Has been cancelled
This commit is contained in:
parent
41f8beb2aa
commit
24b6b0d455
16 changed files with 306 additions and 3 deletions
20
crates/migrate/data/migrations/55.sql
Normal file
20
crates/migrate/data/migrations/55.sql
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
-- database version 55
|
||||
-- add premium ID change allowances
|
||||
|
||||
alter table system_config
|
||||
add column premium_id_changes_remaining int not null default 0,
|
||||
add constraint premium_id_changes_nonzero check (premium_id_changes_remaining >= 0);
|
||||
|
||||
create table hid_changelog (
|
||||
id serial primary key,
|
||||
system integer references systems (id) on delete set null,
|
||||
discord_uid bigint not null,
|
||||
hid_type text not null,
|
||||
hid_old char(6) not null,
|
||||
hid_new char(6) not null,
|
||||
created timestamp not null default (current_timestamp at time zone 'utc')
|
||||
);
|
||||
|
||||
create index hid_changelog_system_idx on hid_changelog (system);
|
||||
|
||||
update info set schema_version = 55;
|
||||
Loading…
Add table
Add a link
Reference in a new issue