Skip to content

Commit

Permalink
run ef migrations in npm run migrate
Browse files Browse the repository at this point in the history
  • Loading branch information
mythz committed Oct 30, 2023
1 parent 75b1ccd commit 346cf83
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions MyApp/MyApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,8 @@
<ProjectReference Include="..\MyApp.ServiceModel\MyApp.ServiceModel.csproj" />
</ItemGroup>

<ItemGroup>
<Folder Include="App_Data\" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion MyApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"ui:dev": "npx tailwindcss -i ./tailwind.input.css -o ./wwwroot/css/app.css --watch",
"ui:build": "npx tailwindcss -i ./tailwind.input.css -o ./wwwroot/css/app.css --minify",
"build": "npm run ui:build",
"migrate": "dotnet run --AppTasks=migrate",
"migrate": "dotnet ef database update && dotnet run --AppTasks=migrate",
"revert:last": "dotnet run --AppTasks=migrate.revert:last",
"revert:all": "dotnet run --AppTasks=migrate.revert:all",
"rerun:last": "npm run revert:last && npm run migrate"
Expand Down

0 comments on commit 346cf83

Please sign in to comment.