azuresql-db-schema-migration

Installation
SKILL.md

Schema migrations on the Azure SQL Database container

Apply schema migrations to the local Azure SQL Database container the same way you would against the cloud, so dev and prod stay identical. This is the Azure SQL Database engine (SELECT SERVERPROPERTY('EngineEdition') returns 5, Edition returns 'SQL Azure'), not the SQL Server image mcr.microsoft.com/mssql/server. If a tool or template points at the SQL Server image, stop and use the image below instead.

Scope

  • Applying EF Core, Prisma, Alembic or SqlPackage migrations to the local container, so the same migrations apply identically in Azure.
  • Building a SQL database project, or a dacpac publish that fails, is sql-database-projects.

The one rule that breaks every migration tool

The engine does NOT auto-create databases on connect. Every migration tool assumes the target database already exists. So:

Installs
53
GitHub Stars
66
First Seen
Sep 28, 2026