This commit is contained in:
@@ -364,20 +364,21 @@ namespace rockfishCore.Util
|
||||
//schema 16 RAVEN stuff
|
||||
if (currentSchema < 16)
|
||||
{
|
||||
throw new System.Exception("NOT YET!!");
|
||||
|
||||
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, " +
|
||||
"emailvalidated boolean default 0 NOT NULL CHECK (emailvalidated IN (0,1)) 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
|
||||
exec("alter table purchase add quantity integer default 1 not null");
|
||||
exec("insert into product (name, productCode, price, renewPrice) values ('TEST RAVEN schedulable resource 1 year subscription license','testfeatscheduser',15900, 5565);");
|
||||
exec("insert into product (name, productCode, price, renewPrice) values ('TEST RAVEN Accounting 1 year subscription license','testfeatacct',15000, 5250);");
|
||||
exec("insert into product (name, productCode, price, renewPrice) values ('TEST RAVEN Feature Trial mode','testfeattrial',0, 0);");
|
||||
exec("insert into product (name, productCode, price, renewPrice) values ('TEST RAVEN Feature Service mode','testfeatservice',0, 0);");
|
||||
|
||||
currentSchema = 16;
|
||||
setSchemaLevel(currentSchema);
|
||||
|
||||
Reference in New Issue
Block a user