migrations
Installation
SKILL.md
Yii2 Database Migrations
When to use
- The user needs to apply or revert Yii2 migrations through the yii migrate console command.
- The user wants to create a Yii2 migration class to change the database schema.
- The user is implementing a Yii2 migration safeUp and safeDown so the schema change can be rolled back.
When NOT to use
- Do not run ad hoc ALTER TABLE statements directly against a shared database instead of writing a migration.
- Do not use migrations to load large volumes of application data that belongs in a seeder or fixture.