fix(views): check if bucket index already exists before creating new index
continuous-integration/drone/push Build is failing Details

Resolves #2243
This commit is contained in:
kolaente 2024-04-13 14:20:27 +02:00
parent 3e7225ebee
commit bf3c8ac9da
Signed by: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 2 deletions

View File

@ -82,7 +82,6 @@ func init() {
if config.DatabaseType.GetString() == "sqlite" {
_, err = tx.Exec(`
create table buckets_dg_tmp
(
id INTEGER not null
@ -107,7 +106,7 @@ drop table buckets;
alter table buckets_dg_tmp
rename to buckets;
create unique index UQE_buckets_id
create unique index if not exists UQE_buckets_id
on buckets (id);
`)
return err