azuresql-db-schema-migration
Installation
SKILL.md
Azure SQL Database: schema migrations
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.
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:
- Provision
appdbon a master connection FIRST. - Then point the migration tool at the user database (
Database=appdb).