mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
more cleanup.
This commit is contained in:
parent
ea4f0dbe5f
commit
b6fc731db8
3 changed files with 7 additions and 15 deletions
|
@ -1,5 +1,4 @@
|
|||
using System;
|
||||
using System.Data;
|
||||
using Marr.Data;
|
||||
using Mono.Data.Sqlite;
|
||||
using NzbDrone.Core.Datastore.Migration.Framework;
|
||||
|
@ -27,7 +26,10 @@ namespace NzbDrone.Core.Datastore
|
|||
var connectionString = GetConnectionString(dbPath);
|
||||
|
||||
_migrationController.MigrateToLatest(connectionString, migrationType);
|
||||
var dataMapper = new DataMapper(SqliteFactory.Instance, connectionString);
|
||||
var dataMapper = new DataMapper(SqliteFactory.Instance, connectionString)
|
||||
{
|
||||
SqlMode = SqlModes.Text,
|
||||
};
|
||||
return new Database(dataMapper);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue