mirror of
https://github.com/ReCloudStudio/WebHooker.git
synced 2026-09-22 16:11:29 +00:00
chore: add db:migrate scripts and document the D1 migration step
- Add npm scripts db:migrate (local) and db:migrate:prod (remote) for wrangler d1 migrations apply webhooker - Document the D1 database creation + migration step in the deployment guides (README en/zh, docs en/zh) and AGENTS.md - Note the d1 execute fallback for databases already migrated manually
This commit is contained in:
parent
afe19795b1
commit
cb18683fb8
6 changed files with 89 additions and 13 deletions
|
|
@ -5,6 +5,8 @@
|
|||
"scripts": {
|
||||
"dev": "wrangler dev",
|
||||
"deploy": "wrangler deploy",
|
||||
"db:migrate": "wrangler d1 migrations apply webhooker --local",
|
||||
"db:migrate:prod": "wrangler d1 migrations apply webhooker --remote",
|
||||
"typecheck": "tsc --noEmit",
|
||||
"lint": "eslint src/",
|
||||
"lint:md": "markdownlint '**/*.md' --ignore node_modules --ignore dist",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue