fix: drop bucket index before recreating it
All checks were successful
continuous-integration/drone/pr Build is passing

Resolves #2243
This commit is contained in:
kolaente 2024-04-07 12:50:17 +02:00
parent 212d11ae72
commit 5943d999f4
Signed by: konrad
GPG Key ID: F40E70337AB24C9B

View File

@ -82,6 +82,7 @@ func init() {
if config.DatabaseType.GetString() == "sqlite" {
_, err = tx.Exec(`
create table buckets_dg_tmp
(
id INTEGER not null
@ -99,6 +100,8 @@ insert into buckets_dg_tmp(id, title, "limit", position, created, updated, creat
select id, title, "limit", position, created, updated, created_by_id, project_view_id
from buckets;
drop index if exists buckets.UQE_buckets_id;
drop table buckets;
alter table buckets_dg_tmp