fix for sqlite migration (#558)

This commit is contained in:
Michael Quigley 2024-02-08 13:20:26 -05:00
parent 1db29fdc11
commit 7f66489270
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -22,6 +22,7 @@ create table shares (
constraint chk_backend_mode check (backend_mode == 'proxy' or backend_mode == 'web' or backend_mode == 'tcpTunnel' or backend_mode == 'udpTunnel' or backend_mode == 'caddy' or backend_mode == 'drive' or backend_mode == 'socks') constraint chk_backend_mode check (backend_mode == 'proxy' or backend_mode == 'web' or backend_mode == 'tcpTunnel' or backend_mode == 'udpTunnel' or backend_mode == 'caddy' or backend_mode == 'drive' or backend_mode == 'socks')
); );
insert into shares select * from shares_old; insert into shares select * from shares_old;
drop index shares_token_idx;
create unique index shares_token_idx ON shares(token) WHERE deleted is false; create unique index shares_token_idx ON shares(token) WHERE deleted is false;
alter table frontends rename to frontends_old; alter table frontends rename to frontends_old;