fix: drop bucket index before recreating it
continuous-integration/drone/pr Build is passing
Details
continuous-integration/drone/pr Build is passing
Details
Resolves #2243
This commit is contained in:
parent
212d11ae72
commit
5943d999f4
|
@ -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