diff --git a/notes/todo b/notes/todo index ff5828a..6637008 100644 --- a/notes/todo +++ b/notes/todo @@ -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 diff --git a/util/RfSchema.cs b/util/RfSchema.cs index 0c1ce2b..1468b0a 100644 --- a/util/RfSchema.cs +++ b/util/RfSchema.cs @@ -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);