You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Skill]: schema-migrations-safely should explicitly separate greenfield migration squashing from live expand-contract #88
microsoft-sql version not surfaced by the host; GitHub Copilot CLI 1.0.84-5
What happened
During a greenfield implementation with no deployed database, review and implementation cycles treated intermediate EF migrations as if they were already consumed by production. Considerable work went into adding follow-up migrations, testing upgrade paths, and then later consolidating them.
The skill provides strong live-database doctrine but does not prominently say that before the first deployment, it is usually appropriate to discard and regenerate a clean initial migration.
What the skill said, and what worked instead
It emphasizes expand/backfill/contract, schema locks, idempotence, and safe live changes.
What would have helped:
Add an early branch:
No environment has applied the migration: freely revise the model and regenerate/squash into one reviewed initial migration.
Any shared or production-like environment has applied it: never rewrite history; use expand/backfill/contract and forward-only repair.
Require the agent to establish which state applies before reviewing migration safety.
Steps to reproduce
Create a greenfield EF Core Azure SQL project.
Generate an initial migration.
Revise the schema repeatedly before deployment.
Ask for safe migration guidance.
Observe that live migration doctrine can be applied prematurely without an explicit environment-state gate.
Additional context
The live migration guidance itself is valuable and should remain unchanged after the first deployment.
Confirmation
This is about a plugin or agent skill published by this repository.
I removed passwords, connection strings, tokens, customer data, and other secrets.
Activity