fix: drop bucket index before recreating it
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
Resolves #2243
This commit is contained in:
parent
4d78ae7fa8
commit
ca33c0b2bc
|
@ -82,6 +82,7 @@ func init() {
|
||||||
|
|
||||||
if config.DatabaseType.GetString() == "sqlite" {
|
if config.DatabaseType.GetString() == "sqlite" {
|
||||||
_, err = tx.Exec(`
|
_, err = tx.Exec(`
|
||||||
|
|
||||||
create table buckets_dg_tmp
|
create table buckets_dg_tmp
|
||||||
(
|
(
|
||||||
id INTEGER not null
|
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
|
select id, title, "limit", position, created, updated, created_by_id, project_view_id
|
||||||
from buckets;
|
from buckets;
|
||||||
|
|
||||||
|
drop index if exists buckets.UQE_buckets_id;
|
||||||
|
|
||||||
drop table buckets;
|
drop table buckets;
|
||||||
|
|
||||||
alter table buckets_dg_tmp
|
alter table buckets_dg_tmp
|
||||||
|
|
Loading…
Reference in New Issue
Block a user