costco-grocery-list/packages/db/migrations/README.md
Nico 77ae5be445
All checks were successful
Build & Deploy Costco Grocery List / build (push) Successful in 1m10s
Build & Deploy Costco Grocery List / verify-images (push) Successful in 3s
Build & Deploy Costco Grocery List / deploy (push) Successful in 11s
Build & Deploy Costco Grocery List / notify (push) Successful in 1s
refactor
2026-02-22 01:27:03 -08:00

16 lines
674 B
Markdown

# Migration Directory
This directory is the canonical location for SQL migrations.
- Use `npm run db:migrate` to apply pending migrations.
- Use `npm run db:migrate:status` to view applied/pending migrations.
- Use `npm run db:migrate:verify` to fail when pending migrations exist.
- Use `npm run db:migrate:new -- <migration-name>` to create a new migration file.
Do not place new canonical migrations under `backend/migrations`.
## Stale baseline
- `stale-files.json` lists canonical SQL files intentionally treated as stale.
- Files listed there are skipped by migration commands by default.
- Add only genuinely new migration files when schema changes are required.