migration-workflow

Guide EF Core migrations, NuGet updates, and .NET upgrades with rollback steps.

224|87|Updated Dec 15, 2018
One-click install
npx skills add https://github.com/Resgrid/Core --skill migration-workflow-resgrid
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: migration-workflow
Source: https://github.com/Resgrid/Core/tree/main/.opencode/skills/migration-workflow
Command: npx skills add https://github.com/Resgrid/Core --skill migration-workflow-resgrid

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill prevents risky, production-breaking changes by guiding you through safe EF Core migrations, NuGet dependency updates, and .NET version upgrades with verification and rollback planning.

Core Features & Use Cases

  • Safe EF Core migration execution: Review generated SQL, watch for data loss and long locks, apply only after checks, and verify afterward.
  • Rollback-ready change management: Maintain a clear rollback path for failed migrations and package upgrades.
  • Incremental upgrades for stability: Update packages and frameworks one at a time, build and test between each step, and avoid bundling unrelated changes.

Quick Start

Ask the AI for an end-to-end migration plan that includes SQL review, apply steps, full test verification, and a specific rollback command for the previous migration.

Frequently Asked Questions about migration-workflow

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

FAQPage Schema
How do I safely apply EF Core database migrations without causing data loss?

Safe EF Core database migrations require reviewing generated SQL for data loss and long locks, applying changes only after verification, and testing fully afterward. This ensures schema updates minimize lock time risk and prevent broken deployments.

What is the best way to rollback a failed EF Core migration in production?

A failed EF Core migration rollback requires maintaining a clear rollback path using deterministic dotnet EF commands. You can apply a specific rollback command to revert to the previous migration state if verification steps detect deployment issues.

How do I upgrade .NET versions and NuGet dependencies without breaking my build?

Upgrading .NET versions and NuGet dependencies safely requires incremental updates applied one package at a time. Build and test between each step to isolate failures and avoid bundling unrelated changes that destabilize the application.

Why should I review generated SQL before applying an EF Core migration?

Reviewing generated SQL before applying an EF Core migration identifies potential data loss and long table locks that break production. Checking the script beforehand prevents risky schema changes from executing without explicit verification.

Does this migration workflow support dotnet EF commands for scripting database updates?

The migration workflow uses deterministic dotnet EF commands for migration scripting and database updates. It applies these commands within incremental procedures to guide safe schema changes and framework upgrades with explicit rollback steps.

When should I avoid bundling NuGet package updates with .NET framework upgrades?

You should avoid bundling NuGet package updates with .NET framework upgrades when stability is critical. Incremental upgrades isolate failures by updating one element at a time, building and testing between each step to prevent broken deployments.