mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
11 lines
394 B
MySQL
11 lines
394 B
MySQL
|
|
-- 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;
|