mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-10 15:57:53 +00:00
feat: alternate proxy switch mode "add" (#702)
* feat: alternate proxy switch mode "add" * docs: add proxy switch add to docs * chore: change default alias to proxy switch new from proxy switch on
This commit is contained in:
parent
e44d813b73
commit
6043d31b08
11 changed files with 76 additions and 19 deletions
11
PluralKit.Core/Database/Migrations/50.sql
Normal file
11
PluralKit.Core/Database/Migrations/50.sql
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
-- database version 50
|
||||
-- change proxy switch config to an enum
|
||||
|
||||
alter table system_config
|
||||
alter column proxy_switch drop default,
|
||||
alter column proxy_switch type int
|
||||
using case when proxy_switch then 1 else 0 end,
|
||||
alter column proxy_switch set default 0,
|
||||
add constraint proxy_switch_check check (proxy_switch = ANY (ARRAY[0,1,2]));
|
||||
|
||||
update info set schema_version = 50;
|
||||
Loading…
Add table
Add a link
Reference in a new issue