Adds create-sql-scripts.sh
This commit is contained in:
@@ -15,6 +15,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
|||||||
start-infrastructure.sh = start-infrastructure.sh
|
start-infrastructure.sh = start-infrastructure.sh
|
||||||
azure-pipelines.yml = azure-pipelines.yml
|
azure-pipelines.yml = azure-pipelines.yml
|
||||||
update-databases.sh = update-databases.sh
|
update-databases.sh = update-databases.sh
|
||||||
|
create-sql-scripts.sh = create-sql-scripts.sh
|
||||||
EndProjectSection
|
EndProjectSection
|
||||||
EndProject
|
EndProject
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Web", "src\Web\Web.csproj", "{4E4EE20C-F06A-4A1B-851F-C5577796941C}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Web", "src\Web\Web.csproj", "{4E4EE20C-F06A-4A1B-851F-C5577796941C}"
|
||||||
|
|||||||
37
create-sql-scripts.sh
Normal file
37
create-sql-scripts.sh
Normal file
@@ -0,0 +1,37 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
dotnet ef migrations script \
|
||||||
|
--startup-project src/Web/Web.csproj \
|
||||||
|
--project src/Web/Web.csproj \
|
||||||
|
--context Hutopy.Web.Features.Users.Data.IdentityDbContext \
|
||||||
|
--configuration Debug \
|
||||||
|
--output create-identity-db.sql \
|
||||||
|
--idempotent \
|
||||||
|
--no-build
|
||||||
|
|
||||||
|
dotnet ef migrations script \
|
||||||
|
--startup-project src/Web/Web.csproj \
|
||||||
|
--project src/Web/Web.csproj \
|
||||||
|
--context Hutopy.Web.Features.Messages.Data.MessagingDbContext \
|
||||||
|
--configuration Debug \
|
||||||
|
--output create-messaging-db.sql \
|
||||||
|
--idempotent\
|
||||||
|
--no-build
|
||||||
|
|
||||||
|
dotnet ef migrations script \
|
||||||
|
--startup-project src/Web/Web.csproj \
|
||||||
|
--project src/Web/Web.csproj \
|
||||||
|
--context Hutopy.Web.Features.Contents.Data.ContentDbContext \
|
||||||
|
--configuration Debug \
|
||||||
|
--output create-content-db.sql \
|
||||||
|
--idempotent \
|
||||||
|
--no-build
|
||||||
|
|
||||||
|
dotnet ef migrations script \
|
||||||
|
--startup-project src/Web/Web.csproj \
|
||||||
|
--project src/Web/Web.csproj \
|
||||||
|
--context Hutopy.Web.Features.Memberships.Data.MembershipDbContext \
|
||||||
|
--configuration Debug \
|
||||||
|
--output create-membership-db.sql \
|
||||||
|
--idempotent \
|
||||||
|
--no-build
|
||||||
@@ -3,25 +3,28 @@
|
|||||||
dotnet build
|
dotnet build
|
||||||
|
|
||||||
dotnet ef database update \
|
dotnet ef database update \
|
||||||
--project src/Web/Web.csproj \
|
|
||||||
--startup-project src/Web/Web.csproj \
|
--startup-project src/Web/Web.csproj \
|
||||||
--context Hutopy.Web.Features.Users.Data.ApplicationDbContext \
|
--project src/Web/Web.csproj \
|
||||||
|
--context Hutopy.Web.Features.Users.Data.IdentityDbContext \
|
||||||
--configuration Debug \
|
--configuration Debug \
|
||||||
--no-build
|
--no-build
|
||||||
|
|
||||||
dotnet ef database update \
|
dotnet ef database update \
|
||||||
|
--startup-project src/Web/Web.csproj \
|
||||||
--project src/Web/Web.csproj \
|
--project src/Web/Web.csproj \
|
||||||
--context Hutopy.Web.Features.Messages.Data.MessagingDbContext \
|
--context Hutopy.Web.Features.Messages.Data.MessagingDbContext \
|
||||||
--configuration Debug \
|
--configuration Debug \
|
||||||
--no-build
|
--no-build
|
||||||
|
|
||||||
dotnet ef database update \
|
dotnet ef database update \
|
||||||
|
--startup-project src/Web/Web.csproj \
|
||||||
--project src/Web/Web.csproj \
|
--project src/Web/Web.csproj \
|
||||||
--context Hutopy.Web.Features.Contents.Data.ContentDbContext \
|
--context Hutopy.Web.Features.Contents.Data.ContentDbContext \
|
||||||
--configuration Debug \
|
--configuration Debug \
|
||||||
--no-build
|
--no-build
|
||||||
|
|
||||||
dotnet ef database update \
|
dotnet ef database update \
|
||||||
|
--startup-project src/Web/Web.csproj \
|
||||||
--project src/Web/Web.csproj \
|
--project src/Web/Web.csproj \
|
||||||
--context Hutopy.Web.Features.Memberships.Data.MembershipDbContext \
|
--context Hutopy.Web.Features.Memberships.Data.MembershipDbContext \
|
||||||
--configuration Debug \
|
--configuration Debug \
|
||||||
|
|||||||
Reference in New Issue
Block a user