Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Latest commit

 

History

History
13 lines (10 loc) · 572 Bytes

Migrations.md

File metadata and controls

13 lines (10 loc) · 572 Bytes

Migrations

Add migrations with

dotnet ef migrations add "XYZ"  --output-dir .\Migrations\ --namespace AiPlugin.Migrations --project .\Infrastructure\Infrastructure.csproj --startup-project .\Api\Api.csproj -- --environment Development

Apply them with

dotnet ef database update --project .\Infrastructure\Infrastructure.csproj --startup-project .\Api\Api.csproj -- --environment Development 

Change the environment with --environment Development to --environment Staging or --environment Production to apply the migrations to the other database