Move schema migration stuff to Database
This commit is contained in:
@@ -35,7 +35,7 @@ namespace PluralKit.Bot
|
||||
|
||||
// "Connect to the database" (ie. set off database migrations and ensure state)
|
||||
logger.Information("Connecting to database");
|
||||
await services.Resolve<Schemas>().InitializeDatabase();
|
||||
await services.Resolve<IDatabase>().ApplyMigrations();
|
||||
|
||||
// Init the bot instance itself, register handlers and such to the client before beginning to connect
|
||||
logger.Information("Initializing bot");
|
||||
|
||||
Reference in New Issue
Block a user