This commit is contained in:
@@ -13,7 +13,7 @@ namespace rockfishCore.Util
|
||||
|
||||
/////////////////////////////////////////////////////////////////
|
||||
/////////// CHANGE THIS ON NEW SCHEMA UPDATE ////////////////////
|
||||
public const int DESIRED_SCHEMA_LEVEL = 16;
|
||||
public const int DESIRED_SCHEMA_LEVEL = 17;
|
||||
/////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
@@ -385,6 +385,37 @@ namespace rockfishCore.Util
|
||||
currentSchema = 16;
|
||||
setSchemaLevel(currentSchema);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
//schema 17 RAVEN Subscription license stuff
|
||||
if (currentSchema < 17)
|
||||
{
|
||||
|
||||
exec("alter table trialrequest add perpetual boolean default 0 NOT NULL CHECK (perpetual IN (0,1))");
|
||||
//get rid of test products (which I never used anyway)
|
||||
exec("delete from product where productCode like 'testfeat%'");
|
||||
|
||||
exec("insert into product (name, productCode, price, renewPrice) values ('Single AyaNova service techncian perpetual license','301028314',135, 100);");
|
||||
exec("insert into product (name, productCode, price, renewPrice) values ('Single AyaNova service techncian 1 year maintenance plan - new','301028317',135, 100);");
|
||||
exec("insert into product (name, productCode, price, renewPrice) values ('Single AyaNova service techncian 1 year maintenance plan - active','301028315',100, 100);");
|
||||
|
||||
|
||||
|
||||
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");
|
||||
exec("alter table license add siteid integer");
|
||||
exec("alter table license add dtLicenseExpiration integer");
|
||||
exec("alter table license add dtMaintenanceExpiration integer");
|
||||
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 = 17;
|
||||
setSchemaLevel(currentSchema);
|
||||
}
|
||||
//*************************************************************************************
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user