refactor: Update database migration scripts and enhance CI workflow

This commit is contained in:
beilunyang
2024-12-16 13:02:40 +08:00
parent cc7e5003c5
commit e0bd04818e
5 changed files with 566 additions and 138 deletions

View File

@@ -8,8 +8,8 @@
"start": "next start",
"lint": "next lint",
"build:pages": "npx @cloudflare/next-on-pages",
"db:migrate-local": "drizzle-kit generate && wrangler d1 migrations apply temp_mail_db --local",
"db:migrate-remote": "drizzle-kit generate && wrangler d1 migrations apply temp_mail_db --remote",
"db:migrate-local": "tsx scripts/migrate.ts local",
"db:migrate-remote": "tsx scripts/migrate.ts remote",
"generate-test-data": "wrangler dev scripts/generate-test-data.ts",
"dev:cleanup": "wrangler dev --config wrangler.cleanup.toml --test-scheduled",
"test:cleanup": "curl http://localhost:8787/__scheduled",
@@ -55,6 +55,8 @@
"tailwindcss": "^3.4.1",
"typescript": "^5",
"vercel": "39.1.1",
"wrangler": "^3.91.0"
"wrangler": "^3.91.0",
"@iarna/toml": "^3.0.0",
"tsx": "^4.7.1"
}
}