creating-database-migrations
Installation
SKILL.md
Creating Database Migrations
Workflow
-
Identify the right migration directory.
- Main database migrations live in
packages/database/lib/migrations/. - Other services may have their own migration directories; use the directory for the service being changed.
- Main database migrations live in
-
Before writing a migration, read 2-3 recent migrations in the same directory and follow their style.
-
Name new main database migrations with the timestamped CommonJS format:
<YYYYMMDDHHMMSS>_<description>.cjsExample: