Adds update-databases.sh script

This commit is contained in:
Jonathan Bourdon
2024-07-22 00:31:01 -04:00
parent 9621ddb85e
commit 8551398edc
2 changed files with 18 additions and 0 deletions

17
update-databases.sh Normal file
View 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!;