This commit is contained in:
@@ -256,7 +256,7 @@ namespace AyaNova.Util
|
||||
+ "workordercompletebyage INTERVAL NOT NULL DEFAULT '00:00:00', "
|
||||
+ "workordertraveldefaultminutes INTEGER NOT NULL DEFAULT 0, "
|
||||
+ "worklaborscheduledefaultminutes INTEGER NOT NULL DEFAULT 0, "
|
||||
+ "customerdefaultworkorderreportid BIGINT NULL REFERENCES areport(id), "
|
||||
|
||||
+ "customerservicerequestinfohtml TEXT, "
|
||||
+ "customerallowcsr BOOL DEFAULT FALSE, customerallowcsrintags VARCHAR(255) ARRAY, customerallowcsrouttags VARCHAR(255) ARRAY, "
|
||||
+ "customerallowviewwo BOOL DEFAULT FALSE, customerallowviewwointags VARCHAR(255) ARRAY, customerallowviewwoouttags VARCHAR(255) ARRAY, "
|
||||
@@ -265,7 +265,7 @@ namespace AyaNova.Util
|
||||
+ "customerallownotifyserviceimminent BOOL DEFAULT FALSE, customerallownotifyserviceimminentintags VARCHAR(255) ARRAY, customerallownotifyserviceimminentouttags VARCHAR(255) ARRAY, "
|
||||
+ "customerallownotifycsraccepted BOOL DEFAULT FALSE, customerallownotifycsracceptedintags VARCHAR(255) ARRAY, customerallownotifycsracceptedouttags VARCHAR(255) ARRAY, "
|
||||
+ "customerallownotifycsrrejected BOOL DEFAULT FALSE, customerallownotifycsrrejectedintags VARCHAR(255) ARRAY, customerallownotifycsrrejectedouttags VARCHAR(255) ARRAY, "
|
||||
+ "customerallownotifyworkordercreated BOOL DEFAULT FALSE, customerallownotifyworkordercreatedintags VARCHAR(255) ARRAY, customerallownotifyworkordercreatedouttags VARCHAR(255) ARRAY, "
|
||||
+ "customerallownotifyworkordercreated BOOL DEFAULT FALSE, customerallownotifyworkordercreatedintags VARCHAR(255) ARRAY, customerallownotifyworkordercreatedouttags VARCHAR(255) ARRAY "
|
||||
+ ")");
|
||||
|
||||
//create global ops BACKUP settings table
|
||||
@@ -524,7 +524,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
|
||||
//Global tax code defaults
|
||||
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column taxpartpurchaseid BIGINT REFERENCES ataxcode, "
|
||||
+ "ADD column taxpartsaleid BIGINT REFERENCES ataxcode, ADD column taxratesaleid BIGINT REFERENCES ataxcode");
|
||||
|
||||
|
||||
//MEMO
|
||||
await ExecQueryAsync("CREATE TABLE amemo (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name TEXT NOT NULL, "
|
||||
+ "notes TEXT, wiki TEXT, customfields TEXT, tags VARCHAR(255) ARRAY, "
|
||||
@@ -949,7 +949,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
|
||||
await ExecQueryAsync("CREATE TABLE anotifyevent (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, created TIMESTAMP NOT NULL, "
|
||||
+ "ayatype INTEGER NOT NULL, objectid BIGINT NOT NULL, name TEXT NOT NULL, eventtype INTEGER NOT NULL, notifysubscriptionid BIGINT NOT NULL REFERENCES anotifysubscription(id) ON DELETE CASCADE, "
|
||||
+ "userid BIGINT NOT NULL REFERENCES auser (id), eventdate TIMESTAMP NOT NULL, decvalue DECIMAL(38,18) NULL, message TEXT)");
|
||||
|
||||
|
||||
|
||||
await ExecQueryAsync("CREATE TABLE anotification (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, userid BIGINT NOT NULL REFERENCES auser (id), "
|
||||
+ "created TIMESTAMP NOT NULL, ayatype INTEGER NOT NULL, objectid BIGINT NOT NULL, name TEXT NOT NULL, agevalue INTERVAL, eventtype INTEGER NOT NULL, "
|
||||
@@ -968,6 +968,9 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
|
||||
+ "notes TEXT, roles INTEGER NOT NULL, atype INTEGER NOT NULL, template TEXT, style TEXT, jsprerender TEXT, jshelpers TEXT, rendertype INTEGER NOT NULL, "
|
||||
+ "headertemplate TEXT, footertemplate TEXT, displayheaderfooter BOOL, paperformat INTEGER NOT NULL, landscape BOOL, marginoptionsbottom TEXT, "
|
||||
+ "marginoptionsleft TEXT, marginoptionsright TEXT, marginoptionstop TEXT, pageranges TEXT, prefercsspagesize BOOL, printbackground BOOL, scale DECIMAL(8,5) )");
|
||||
|
||||
//Global customer default workorder report default
|
||||
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column customerdefaultworkorderreportid BIGINT REFERENCES areport(id) ");
|
||||
|
||||
//Load the stock REPORT TEMPLATES
|
||||
await AyaNova.Biz.PrimeData.PrimeReportTemplates();
|
||||
|
||||
Reference in New Issue
Block a user