Added our own custom migrations, a lot easier to migrate DB versions now.

This commit is contained in:
tidusjar 2016-10-22 20:38:05 +01:00
parent 171c64fe8e
commit 6e3339ad3c
16 changed files with 492 additions and 30 deletions

View file

@ -32,6 +32,7 @@ using Nancy.Authentication.Forms;
using Ninject.Modules;
using PlexRequests.Core;
using PlexRequests.Core.Migration;
using PlexRequests.Helpers;
using PlexRequests.Services.Interfaces;
using PlexRequests.Services.Notification;
@ -47,6 +48,7 @@ namespace PlexRequests.UI.NinjectModules
Bind<ISqliteConfiguration>().To<DbConfiguration>().WithConstructorArgument("provider", new SqliteFactory());
Bind<IPlexDatabase>().To<PlexDatabase>().WithConstructorArgument("provider", new SqliteFactory());
Bind<IPlexReadOnlyDatabase>().To<PlexReadOnlyDatabase>();
Bind<IMigrationRunner>().To<MigrationRunner>();
Bind<IUserMapper>().To<UserMapper>();