This commit is contained in:
@@ -413,10 +413,13 @@ namespace AyaImport
|
||||
}
|
||||
else
|
||||
{
|
||||
#if(DEBUG)
|
||||
#if(ATTEMPT_UPGRADE_FROM_142)
|
||||
//cmd.CommandText = ("update blah set blah = blah");
|
||||
//cmd.ExecuteNonQuery();
|
||||
nVersion = 171;
|
||||
UpdateCEDatabaseSchema.go(conn, nVersion);
|
||||
nVersion = 171;//if this update works then the version is now 171
|
||||
#endif
|
||||
#endif
|
||||
|
||||
if (nVersion > 170)
|
||||
@@ -4592,10 +4595,11 @@ namespace AyaImport
|
||||
//etc etc etc
|
||||
private static OleDbCommand cmd = null;
|
||||
|
||||
private static void executeQuery(string q){
|
||||
private static void executeQuery(string q)
|
||||
{
|
||||
cmd.CommandText = q; cmd.ExecuteNonQuery();
|
||||
}
|
||||
private static void go(System.Data.OleDb.OleDbConnection conn, int nVersion)
|
||||
public static void go(System.Data.OleDb.OleDbConnection conn, int nVersion)
|
||||
{
|
||||
cmd = new OleDbCommand();
|
||||
cmd.Connection = conn;
|
||||
@@ -6008,7 +6012,6 @@ private static void go(System.Data.OleDb.OleDbConnection conn, int nVersion)
|
||||
|
||||
|
||||
case 154: //update for v1721
|
||||
|
||||
{
|
||||
executeQuery("ALTER TABLE users ADD COLUMN schedrnd YESNO;");
|
||||
executeQuery("UPDATE users SET users.schedrnd = True;");
|
||||
|
||||
Reference in New Issue
Block a user