mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 13:33:34 -07:00
auto increment ID.
model tables are automatically created.
This commit is contained in:
parent
aeebae33fd
commit
7603d8e1ba
8 changed files with 35 additions and 6 deletions
|
@ -30,7 +30,11 @@ namespace NzbDrone.Core.Datastore
|
|||
|
||||
OrmLiteConfig.DialectProvider = new SqliteOrmLiteDialectProvider();
|
||||
var dbFactory = new OrmLiteConnectionFactory(connectionString);
|
||||
return dbFactory.Open();
|
||||
var connection = dbFactory.Open();
|
||||
|
||||
Migration.CreateTables(connection);
|
||||
|
||||
return connection;
|
||||
}
|
||||
|
||||
private string GetConnectionString(string dbPath)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue