Adds update-databases.sh script
This commit is contained in:
@@ -27,6 +27,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution
|
|||||||
README.md = README.md
|
README.md = README.md
|
||||||
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
|
||||||
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}"
|
||||||
|
|||||||
17
update-databases.sh
Normal file
17
update-databases.sh
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
dotnet ef database update \
|
||||||
|
--project src/Web/Web.csproj \
|
||||||
|
--startup-project src/Web/Web.csproj \
|
||||||
|
--context Hutopy.Web.Features.Messages.Data.MessagingDbContext \
|
||||||
|
--configuration Debug \
|
||||||
|
--no-build \
|
||||||
|
--connection Server=localhost,5432;Database=Hutopy;Uid=sa;Pwd=P@ssword123!;
|
||||||
|
|
||||||
|
dotnet ef database update \
|
||||||
|
--project src/Web/Web.csproj \
|
||||||
|
--startup-project src/Web/Web.csproj \
|
||||||
|
--context Hutopy.Web.Features.Contents.Data.ContentDbContext \
|
||||||
|
--configuration Debug \
|
||||||
|
--no-build \
|
||||||
|
--connection Server=localhost,5432;Database=Hutopy;Uid=sa;Pwd=P@ssword123!;
|
||||||
Reference in New Issue
Block a user