forked from DevBetterCom/DevBetterWeb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
efscripts.txt
17 lines (11 loc) · 1012 Bytes
/
efscripts.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- RUN THIS FROM THE WEB PROJECT FOLDER
dotnet ef migrations add InviteEntityActiveBool --context appdbcontext -p ../DevBetterWeb.Infrastructure/DevBetterWeb.Infrastructure.csproj -s DevBetterWeb.Web.csproj -o Data/Migrations
dotnet ef migrations add InitialModel --context identitydbcontext -o Areas/Identity/Data/Migrations
-- RUN THIS FROM THE WEB PROJECT FOLDER
dotnet ef database update -c appdbcontext -p ../DevBetterWeb.Infrastructure/DevBetterWeb.Infrastructure.csproj -s DevBetterWeb.Web.csproj
##run this from the infrastructure project directory to update the identity data
dotnet ef database update -c IdentityDbContext -s ..\devbetterweb.web\DevBetterWeb.Web.csproj
-- GENERATE SCRIPT FOR PROD DB UPDATES (FROM WEB FOLDER)
dotnet ef migrations script --context appdbcontext -p ../DevBetterWeb.Infrastructure/DevBetterWeb.Infrastructure.csproj -s DevBetterWeb.Web.csproj > update.sql
76040fbe-b7e4-452a-b2aa-e48520c771cf - admin role
be21ba0d-47b0-45c0-aa15-02fa22e5d7f6 - [email protected] user