Migrations

Still need to remove System.Data.Sqlite, prefer an option in OrmLite to pluralize table names.
This commit is contained in:
markus101 2013-03-24 21:36:24 -07:00 committed by kay.one
commit 4bb4faf626
29 changed files with 375 additions and 50 deletions

View file

@ -28,6 +28,8 @@ namespace NzbDrone.Core.Datastore
connectionString = GetConnectionString(dbPath);
}
MigrationHelper.MigrateToLatest(connectionString, MigrationType.Main);
OrmLiteConfig.DialectProvider = new SqliteOrmLiteDialectProvider();
var dbFactory = new OrmLiteConnectionFactory(connectionString);
var connection = dbFactory.Open();