mirror of
https://github.com/hex248/sprint.git
synced 2026-02-07 18:23:03 +00:00
migrate instead of push --force
This commit is contained in:
@@ -26,9 +26,9 @@ async function resetDatabase() {
|
|||||||
|
|
||||||
console.log("all tables dropped");
|
console.log("all tables dropped");
|
||||||
|
|
||||||
// push the schema to recreate tables
|
// run migrations to recreate tables
|
||||||
console.log("recreating schema...");
|
console.log("running migrations...");
|
||||||
execSync("npx drizzle-kit push --force", {
|
execSync("npx drizzle-kit migrate", {
|
||||||
stdio: "inherit",
|
stdio: "inherit",
|
||||||
cwd: `${import.meta.dir}/..`,
|
cwd: `${import.meta.dir}/..`,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user