database-migration

Create, apply, and roll back EF Core database migrations for .NET applications.

Updated Mar 28, 2026
One-click install
npx skills add https://github.com/congiuluc/my-awesome-copilot --skill database-migration-congiuluc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: database-migration
Source: https://github.com/congiuluc/my-awesome-copilot/tree/main/skills/database-migration
Command: npx skills add https://github.com/congiuluc/my-awesome-copilot --skill database-migration-congiuluc

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Manage database schema migrations for .NET applications. It covers EF Core migrations, naming conventions, rollback strategies, data seeding, migration testing, and CI/CD pipeline integration. Use when: creating migrations, handling schema changes, seeding data, testing migrations, or configuring migration pipelines.

Core Features & Use Cases

  • Create, apply, and rollback EF Core migrations with consistent naming conventions.
  • Seed reference data and test migrations safely to prevent data loss.
  • Integrate migrations into CI/CD pipelines with idempotent scripts and validation.

Quick Start

Create and apply an EF Core migration to a test database.

Frequently Asked Questions about database-migration

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I manage EF Core database migrations across different environments?

Manage EF Core database migrations across environments by integrating idempotent scripts and validation into CI/CD pipelines. This ensures sequential schema migrations and safe rollout practices to prevent data loss during deployment.

How do I rollback an EF Core migration without losing data?

Rollback an EF Core migration safely by applying established rollback strategies and testing migrations beforehand. This safeguards database schema changes and prevents data loss during the reversal process.

What is the best way to seed reference data in EF Core?

Seeding reference data in EF Core is best handled using deterministic seeds during the migration process. This ensures consistent reference data is applied safely alongside schema changes without manual intervention.

How do I test database schema migrations for .NET applications before applying them?

Test database schema migrations for .NET applications by applying them to a test database first. This validates the schema changes and seeding data safely to prevent data loss before hitting production environments.

Does EF Core migration support idempotent scripts for CI/CD pipelines?

EF Core migration supports idempotent scripts for CI/CD pipelines by enforcing sequential migrations and validation. This integration allows automated, safe schema rollouts across environments without manual execution errors.

When should I not use automated EF Core migrations?

You should not use automated EF Core migrations when schema changes require non-deterministic data transformations or manual data recovery. The enforced sequential and deterministic approach may limit complex, non-standard database rollback scenarios.