create-migration
Create a new database migration file for the OWID MySQL database. Use when the user needs to create a database schema change or migration.
Installation
Suivez les instructions du dépôt pour votre agent. Consultez les fichiers et dépendances avant l’installation.
Voir la source ↗GuidesInstructions
Create Database Migration
Create a new database migration file for the OWID MySQL 8 database.
Steps
- Run
yarn createDbMigration db/migration/<NewMigrationName>where<NewMigrationName>is a descriptive name for the migration - The generated filename will contain a timestamp prefix, so scan the
db/migration/directory to find the actual path of the new file - Report the new file path to the user
Naming Guidelines
Choose a descriptive name for the migration that clearly indicates what schema change is being made (e.g., AddUserEmailIndex, CreateAuditLogTable, RemoveDeprecatedColumns).
Exemples
Consultez les exemples du dépôt source.
Voir la source ↗Historique source
- Date d’indexation
- 2026-01-20
- Mise à jour de l’index
- 2026-02-04
- Branch
- main
Les dates concernent ce répertoire. Consultez le dépôt pour l’historique du code.
GitHub ↗chat Comments (0)
Sign in to join the discussion and leave a comment.
No comments yet. Be the first to share your thoughts!