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:
Drewster727 2016-04-02 17:04:05 -05:00
parent 8bd0464bef
commit c52ca41e32
4 changed files with 37 additions and 18 deletions

View file

@ -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();
}