Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 601 Bytes

DEVELOPER.md

File metadata and controls

27 lines (19 loc) · 601 Bytes

EF Core

Migrations

Restore tools first

dotnet tool restore

Add migration

migration="Init"

cd src
dotnet ef migrations add $migration -s SpinRallyBot -p SpinRallyBot.Database.Sqlite -- --provider Sqlite
dotnet ef migrations add $migration -s SpinRallyBot -p SpinRallyBot.Database.Postgres -- --provider Postgres

Remove last migration

cd src
dotnet ef migrations remove -s SpinRallyBot -p SpinRallyBot.Database.Sqlite -- --provider Sqlite
dotnet ef migrations remove -s SpinRallyBot -p SpinRallyBot.Database.Postgres -- --provider Postgres