replace indexes

This commit is contained in:
Michael Quigley 2024-04-16 16:24:40 -04:00
parent 969ff78876
commit 8f0e331c26
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62

View File

@ -25,6 +25,10 @@ create table shares (
insert into shares select * from shares_old; insert into shares select * from shares_old;
drop index shares_token_idx; 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;
drop index shares_token_perf_idx;
create index shares_token_perf_idx on shares (token);
drop index shares_environment_id_idx;
create index shares_environment_id_idx on shares (environment_id);
alter table frontends rename to frontends_old; alter table frontends rename to frontends_old;
create table frontends ( create table frontends (
@ -42,6 +46,7 @@ create table frontends (
); );
insert into frontends select * from frontends_old; insert into frontends select * from frontends_old;
drop table frontends_old; drop table frontends_old;
create index frontends_environment_id_idx on frontends (environment_id);
alter table share_limit_journal rename to share_limit_journal_old; alter table share_limit_journal rename to share_limit_journal_old;
create table share_limit_journal ( create table share_limit_journal (