migrate instead of push --force

This commit is contained in:
Oliver Bryan
2026-01-21 19:37:57 +00:00
parent aac471f1e1
commit 0e3f4be166

View File

@@ -26,9 +26,9 @@ async function resetDatabase() {
console.log("all tables dropped");
// push the schema to recreate tables
console.log("recreating schema...");
execSync("npx drizzle-kit push --force", {
// run migrations to recreate tables
console.log("running migrations...");
execSync("npx drizzle-kit migrate", {
stdio: "inherit",
cwd: `${import.meta.dir}/..`,
});