mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
move database utils to Database/Utils, create DatabaseMigrator
This commit is contained in:
parent
d633cd4906
commit
3d2435eb2e
7 changed files with 91 additions and 62 deletions
|
|
@ -10,6 +10,7 @@ namespace PluralKit.Core
|
|||
protected override void Load(ContainerBuilder builder)
|
||||
{
|
||||
builder.RegisterType<DbConnectionCountHolder>().SingleInstance();
|
||||
builder.RegisterType<DatabaseMigrator>().SingleInstance();
|
||||
builder.RegisterType<Database>().As<IDatabase>().SingleInstance();
|
||||
builder.RegisterType<ModelRepository>().AsSelf().SingleInstance();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue