mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-20 05:23:31 -07:00
added better db migration support than what Subsonic provides out of the box.
This commit is contained in:
parent
180da4c82a
commit
ce63f05512
91 changed files with 7218 additions and 48 deletions
|
@ -29,12 +29,9 @@ namespace NzbDrone.Core.Datastore
|
|||
return type.ToSchemaTable(Connection.MainDataProvider);
|
||||
}
|
||||
|
||||
public virtual Column[] GetColumnsFromDatabase(string connectionString, string tableName)
|
||||
public virtual Column[] GetColumnsFromDatabase(ITransformationProvider database, string tableName)
|
||||
{
|
||||
var dialact = new SQLiteDialect();
|
||||
var mig = new SQLiteTransformationProvider(dialact, connectionString);
|
||||
|
||||
return mig.GetColumns(tableName);
|
||||
return database.GetColumns(tableName);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue