fix(dev): reset legacy dev.db and apply migrations

This commit is contained in:
Zimeng Xiong
2026-02-06 09:54:13 -08:00
parent b075a0cf9e
commit 2e370f9821
2 changed files with 108 additions and 1 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"predev": "node -e \"process.env.DATABASE_URL=process.env.DATABASE_URL||'file:./prisma/dev.db'; require('child_process').execSync('npx prisma migrate deploy', { stdio: 'inherit' });\"",
"predev": "node scripts/predev-migrate.cjs",
"dev": "nodemon src/index.ts",
"test": "vitest run",
"test:watch": "vitest",