Closed Quantam-Studios closed 9 months ago
This code attempted to accomplish this, but it often throws an exception.
From main.cs
// Ensure Database is up to date await DB.Database.EnsureCreatedAsync(); if (DB.Database.GetAppliedMigrations() != DB.Database.GetPendingMigrations()) { await DB.Database.MigrateAsync(); }
Either in
main.cs
ordatabases/Databases.cs
a check should be done to ensure that the DB context is up to date with the most recent migrations.