mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-29 22:55:24 +00:00
test: prove 2.8 to 2.9.0 upgrade is lossless and fix what it caught
This commit is contained in:
1 parent
2ee9b3592c
commit
f779d6a08e
37 files changed
+5184
-377
No files matched your search
@@ -78,10 +78,11 @@ export function resetPluginData(): void {
|
||||
}
|
||||
|
||||
async function execute(statements: string[]): Promise<void> {
|
||||
const { getDb } = await import("../database/db/index.js");
|
||||
const db = getDb();
|
||||
// getDb() has run() only on SQLite; runStatement picks execute() elsewhere.
|
||||
const { runStatement } =
|
||||
await import("../utils/crypto-migration/raw-rows.js");
|
||||
for (const statement of statements) {
|
||||
await db.run(sql.raw(statement));
|
||||
await runStatement(sql.raw(statement));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user