netmash/infrastructure/NDB.Infrastructure.Database.../Scripts/SqlServer/01.CreateMigrationSchema.sql

4 lines
138 B
Transact-SQL

if not exists (select top 1 1 from sys.schemas where name = 'migration')
begin
EXEC ('CREATE SCHEMA [migration] AUTHORIZATION [dbo]')
end