This commit is contained in:
@@ -13,7 +13,7 @@ namespace rockfishCore.Util
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/////////// CHANGE THIS ON NEW SCHEMA UPDATE ////////////////////
|
||||
public const int DESIRED_SCHEMA_LEVEL = 15;
|
||||
public const int DESIRED_SCHEMA_LEVEL = 16;
|
||||
/////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
@@ -359,6 +359,32 @@ namespace rockfishCore.Util
|
||||
setSchemaLevel(currentSchema);
|
||||
}
|
||||
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
//schema 16 RAVEN stuff
|
||||
if (currentSchema < 16)
|
||||
{
|
||||
// exec("CREATE TABLE trialrequest (" +
|
||||
// "id INTEGER PRIMARY KEY, dtcreated integer not null, customerid integer not null, regto text not null, key text not null, code text not null, email text not null, " +
|
||||
// "fetchfrom text, dtfetched integer, fetched boolean default 0 NOT NULL CHECK (fetched IN (0,1))" +
|
||||
// ")");
|
||||
|
||||
exec("CREATE TABLE trialrequest (" +
|
||||
"id INTEGER PRIMARY KEY, dbid text not null, companyname text not null, contactname text not null, notes text, email text not null, dtrequested integer, " +
|
||||
"dtprocessed integer, status integer default 0 not null, rejectreason text, key text, dtfetched integer, fetched boolean default 0 NOT NULL CHECK (fetched IN (0,1))" +
|
||||
")");
|
||||
|
||||
exec("alter table site add legacyv7 boolean default 0 NOT NULL CHECK (fetched IN (0,1))");
|
||||
exec("alter table site add dbid text default 'v7_no_dbid' NOT NULL");
|
||||
exec("update site set legacyv7 = 1");
|
||||
|
||||
exec("alter table license add dbid text default 'v7_no_dbid' NOT NULL");
|
||||
|
||||
//add product codes for raven
|
||||
|
||||
currentSchema = 16;
|
||||
setSchemaLevel(currentSchema);
|
||||
}
|
||||
//*************************************************************************************
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user