Skip to content

Commit

Permalink
docs sqlite migrations fix p3
Browse files Browse the repository at this point in the history
  • Loading branch information
RomneyDa committed Jan 7, 2025
1 parent 630d0fb commit c3bd2ca
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions core/indexing/docs/migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<
Expand Down

0 comments on commit c3bd2ca

Please sign in to comment.