Elffuss BraidHub

kikocis/continue public

Merge pull request #6617 from continuedev/nathants/docs-service-sqlite-setup

fix: sqlite migrations should ran after the table is created
Changeset1de936986cd18fba9cf49fe3adc7424d30b92f3320fea88945cc60b22c5ff7bd
Authornathants <me@nathants.com> · 2025-07-14 15:14 -10:00
CommitterGitHub <noreply@github.com> · 2025-07-14 15:14 -10:00
Parents63e5ee7250ba, 1994316b993e

Browse the files at this changeset

1 file changed

modified core/indexing/docs/DocsService.ts +2 −1
@@ -968,7 +968,6 @@
968968
969969 await db.exec("PRAGMA busy_timeout = 3000;");
970970
971- await runSqliteMigrations(db);
972971 // First create the table if it doesn't exist
973972 await db.exec(`CREATE TABLE IF NOT EXISTS ${DocsService.sqlitebTableName} (
974973 id INTEGER PRIMARY KEY AUTOINCREMENT,
@@ -978,6 +977,8 @@
978977 embeddingsProviderId STRING
979978 )`);
980979
980+ await runSqliteMigrations(db);
981+
981982 this.sqliteDb = db;
982983 }
983984