From d208c27a8125f02d6cef659d0b875d1e681acc04 Mon Sep 17 00:00:00 2001 From: Dmitry Vedenko Date: Wed, 17 Apr 2024 18:38:23 +0300 Subject: [PATCH] Fixes migrations setup --- libraries/lib-cloud-audiocom/sync/CloudProjectsDatabase.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/lib-cloud-audiocom/sync/CloudProjectsDatabase.cpp b/libraries/lib-cloud-audiocom/sync/CloudProjectsDatabase.cpp index 2becdab4d6aa..b9a2ae20f505 100644 --- a/libraries/lib-cloud-audiocom/sync/CloudProjectsDatabase.cpp +++ b/libraries/lib-cloud-audiocom/sync/CloudProjectsDatabase.cpp @@ -93,7 +93,9 @@ CREATE TABLE IF NOT EXISTS migration version INTEGER ); -INSERT OR IGNORE INTO migration (version) VALUES (0); +INSERT INTO migration (version) VALUES (0); + +DELETE FROM migration WHERE ROWID != 1; )"; const auto addProjectSyncedDialogShownColumn = R"(