
ef-migrations
by michaellperry
SKILL.md
name: ef-migrations description: Instructions for managing Entity Framework Core migrations using project scripts. Use when adding, removing, applying, or listing database migrations.
Entity Framework Core Migrations
This project uses shell scripts to manage EF Core migrations. These scripts handle project paths and configuration automatically.
Scripts Location
- Bash (macOS/Linux):
./scripts/bash/ - PowerShell (Windows):
./scripts/powershell/
Workflow
1. Create a New Migration
Use this when you have modified domain entities or configurations and need to update the database schema.
Bash:
./scripts/bash/db-migrate-add.sh <MigrationName>
PowerShell:
./scripts/powershell/db-migrate-add.ps1 <MigrationName>
2. Apply Migrations
Use this to update the database to match the current migrations.
Bash:
./scripts/bash/db-update.sh
PowerShell:
./scripts/powershell/db-update.ps1
3. Remove Last Migration
Use this if you created a migration by mistake and haven't applied it yet (or want to revert the code changes and the migration artifact).
Bash:
./scripts/bash/db-migrate-remove.sh
PowerShell:
./scripts/powershell/db-migrate-remove.ps1
4. List Migrations
Bash:
./scripts/bash/db-migrate-list.sh
PowerShell:
./scripts/powershell/db-migrate-list.ps1
5. Rollback Database
Use this to revert the database to a specific previous migration.
Bash:
./scripts/bash/db-migrate-rollback.sh <TargetMigrationName>
PowerShell:
./scripts/powershell/db-migrate-rollback.ps1 <TargetMigrationName>
Score
Total Score
Based on repository quality metrics
SKILL.mdファイルが含まれている
ライセンスが設定されている
100文字以上の説明がある
GitHub Stars 100以上
3ヶ月以内に更新がある
10回以上フォークされている
オープンIssueが50未満
プログラミング言語が設定されている
1つ以上のタグが設定されている
Reviews
Reviews coming soon