chore(storage): update drizzle and channel db handling

This commit is contained in:
Dax Raad
2026-03-06 10:58:07 -05:00
parent e0ca52ed1f
commit 5e699c9426
6 changed files with 33 additions and 19 deletions

View File

@@ -84,6 +84,7 @@ function createTestDb() {
.map((entry) => ({
sql: readFileSync(path.join(dir, entry.name, "migration.sql"), "utf-8"),
timestamp: Number(entry.name.split("_")[0]),
name: entry.name,
}))
.sort((a, b) => a.timestamp - b.timestamp)
migrate(drizzle({ client: sqlite }), migrations)