refactor(db): migrate to libsql

This commit is contained in:
Meier Lukas committed 2026-01-04 19:30:37 +01:00
1 parent 96e2f4fcca
commit 3fbc5013c3
52 files changed
+523 -1450

No files matched your search

+2 -2
View File
@@ -1,4 +1,4 @@
import { migrate } from "drizzle-orm/better-sqlite3/migrator";
import { migrate } from "drizzle-orm/libsql/migrator";
import { createSharedDbConfig, createSqliteDb } from "@homarr/core/infrastructure/db";
@@ -12,7 +12,7 @@ const migrateAsync = async () => {
const config = createSharedDbConfig(sqliteSchema);
const db = createSqliteDb(config);
migrate(db, { migrationsFolder });
await migrate(db, { migrationsFolder });
await seedDataAsync(db);
await applyCustomMigrationsAsync(db);