Separate framework and app migrations

Also add a new develop command: clear-db.
This commit is contained in:
2026-01-24 16:38:33 -06:00
parent 579a19669e
commit 8704c4a8d5
10 changed files with 107 additions and 39 deletions

View File

@@ -0,0 +1,17 @@
import { connectionConfig, migrate, pool } from "../database";
import { dropTables, exitIfUnforced } from "./util";
async function main(): Promise<void> {
exitIfUnforced();
try {
await dropTables();
} finally {
await pool.end();
}
}
main().catch((err) => {
console.error("Failed to clear database:", err.message);
process.exit(1);
});