mirror of
https://github.com/openziti/zrok.git
synced 2024-11-22 08:03:49 +01:00
fix for sqlite migration (#558)
This commit is contained in:
parent
1db29fdc11
commit
7f66489270
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user