This commit is contained in:
2020-06-09 20:10:34 +00:00
parent e067b6ff79
commit d46f5398c6
2 changed files with 9 additions and 5 deletions

View File

@@ -54,6 +54,9 @@ SITE UI AND TABLE
LICENSE TABLE
Add DBID as text to table for v8 keys
PURCHASE TABLE
Add quantity to purchase and default to 1
LicenseView UI
Add dbid as field readonly

View File

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