docs sqlite migrations fix p3
This commit is contained in:
parent
630d0fb76d
commit
c3bd2ca6c2
1 changed files with 0 additions and 8 deletions
|
|
@ -53,14 +53,6 @@ export async function runSqliteMigrations(db: Database) {
|
|||
);
|
||||
}
|
||||
|
||||
const hasEmbeddingsProviderColumn = pragma.some(
|
||||
(pragma) => pragma.name === "embeddingsProviderId",
|
||||
);
|
||||
if (!hasEmbeddingsProviderColumn) {
|
||||
// gotta just delete in this case since old docs will be unusable anyway
|
||||
await db.exec(`DROP TABLE ${DocsService.sqlitebTableName};`);
|
||||
}
|
||||
|
||||
const needsToUpdateConfig = !hasFaviconCol || hasBaseUrlCol;
|
||||
if (needsToUpdateConfig) {
|
||||
const sqliteDocs = await db.all<
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue