mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Move schema migration stuff to Database
This commit is contained in:
parent
1d1b7b8716
commit
f1b28b7fb6
6 changed files with 72 additions and 99 deletions
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue