mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-16 02:02:55 -07:00
remove references to obsolete RequestedBy property + start setting the db schema to the app version, and check that in the future for migrations.
This commit is contained in:
parent
8bd0464bef
commit
c52ca41e32
4 changed files with 37 additions and 18 deletions
|
@ -80,10 +80,10 @@ namespace PlexRequests.Store
|
|||
con.Close();
|
||||
}
|
||||
|
||||
public static void CreateSchema(this IDbConnection con)
|
||||
public static void CreateSchema(this IDbConnection con, int version)
|
||||
{
|
||||
con.Open();
|
||||
con.Query("INSERT INTO DBInfo (SchemaVersion) values (0)");
|
||||
con.Query(string.Format("INSERT INTO DBInfo (SchemaVersion) values ({0})", version));
|
||||
con.Close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue