Limit string length of columns to potentially improve performance
Add design time factory to be able to configure migrations (migrations broken since Design package was removed from main API project in #746) cc @Nightmerp
To configure a migration now:
from the repo root do dotnet ef migrations add MyMigration -p DragaliaAPI/DragaliaAPI.Database -s DragaliaAPI/DragaliaAPI.Database
cd to DragaliaAPI/DragaliaAPI.Database and just do dotnet ef migrations add MyMigration
If you want to use dotnet ef database update, the context factory accepts config from the CLI or env variables in the same format as docker-compose PostgresOptions__* but I haven't tried this
To configure a migration now:
dotnet ef migrations add MyMigration -p DragaliaAPI/DragaliaAPI.Database -s DragaliaAPI/DragaliaAPI.Database
DragaliaAPI/DragaliaAPI.Database
and just dodotnet ef migrations add MyMigration
If you want to use
dotnet ef database update
, the context factory accepts config from the CLI or env variables in the same format as docker-composePostgresOptions__*
but I haven't tried this