This commit is contained in:
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@@ -55,7 +55,7 @@
|
||||
"AYANOVA_FOLDER_USER_FILES": "c:\\temp\\RavenTestData\\userfiles",
|
||||
"AYANOVA_FOLDER_BACKUP_FILES": "c:\\temp\\RavenTestData\\backupfiles",
|
||||
"AYANOVA_FOLDER_TEMPORARY_SERVER_FILES": "c:\\temp\\RavenTestData\\tempfiles",
|
||||
"AYANOVA_SERVER_TEST_MODE": "false",
|
||||
"AYANOVA_SERVER_TEST_MODE": "true",
|
||||
"AYANOVA_SERVER_TEST_MODE_SEEDLEVEL": "small",
|
||||
"AYANOVA_SERVER_TEST_MODE_TZ_OFFSET": "-8",
|
||||
"AYANOVA_BACKUP_PG_DUMP_PATH": "C:\\data\\code\\postgres_14\\bin\\"
|
||||
|
||||
@@ -22,16 +22,16 @@ namespace AyaNova.Util
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||
private const int DESIRED_SCHEMA_LEVEL = 1;
|
||||
|
||||
internal const long EXPECTED_COLUMN_COUNT = 1301;
|
||||
internal const long EXPECTED_COLUMN_COUNT = 1302;
|
||||
internal const long EXPECTED_INDEX_COUNT = 153;
|
||||
internal const long EXPECTED_CHECK_CONSTRAINTS = 518;
|
||||
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 193;
|
||||
internal const long EXPECTED_FOREIGN_KEY_CONSTRAINTS = 198;
|
||||
internal const long EXPECTED_VIEWS = 11;
|
||||
internal const long EXPECTED_ROUTINES = 2;
|
||||
|
||||
//!!!!WARNING: BE SURE TO UPDATE THE DbUtil::EmptyBizDataFromDatabaseForSeedingOrImportingAsync WHEN NEW TABLES ADDED!!!!
|
||||
|
||||
///////////////////////////////////////////////////////////////// C1301:I153:CC518:FC193:V11:R2
|
||||
///////////////////////////////////////////////////////////////// (C1302:I153:CC518:FC198:V11:R2)
|
||||
|
||||
|
||||
|
||||
@@ -261,10 +261,11 @@ namespace AyaNova.Util
|
||||
+ "signaturetitle TEXT, "
|
||||
+ "signatureheader TEXT, "
|
||||
+ "signaturefooter TEXT, "
|
||||
|
||||
+ "customerservicerequestinfotext TEXT, "
|
||||
+ "customerallowcsr BOOL DEFAULT FALSE, customerallowcsrintags VARCHAR(255) ARRAY, "
|
||||
+ "customerallowviewwo BOOL DEFAULT FALSE, customerallowviewwointags VARCHAR(255) ARRAY, "
|
||||
+ "customerworkorderreport1tags VARCHAR(255) ARRAY, customerworkorderreport2tags VARCHAR(255) ARRAY, "
|
||||
+ "customerworkorderreport3tags VARCHAR(255) ARRAY, customerworkorderreport4tags VARCHAR(255) ARRAY, customerworkorderreport5tags VARCHAR(255) ARRAY, "
|
||||
+ "customerallowwowiki BOOL DEFAULT FALSE, customerallowwowikiintags VARCHAR(255) ARRAY, "
|
||||
+ "customerallowusersettings BOOL DEFAULT FALSE, customerallowusersettingsintags VARCHAR(255) ARRAY, "
|
||||
+ "customerallownotifyserviceimminent BOOL DEFAULT FALSE, customerallownotifyserviceimminentintags VARCHAR(255) ARRAY, "
|
||||
@@ -359,18 +360,18 @@ $BODY$;
|
||||
|
||||
|
||||
|
||||
/*
|
||||
/*
|
||||
|
||||
-- FUNCTION: public.aygetnameex(bigint, integer)
|
||||
-- FUNCTION: public.aygetnameex(bigint, integer)
|
||||
-- DROP FUNCTION IF EXISTS public.aygetnameex(bigint, integer);
|
||||
|
||||
CREATE OR REPLACE FUNCTION PUBLIC.AYGETNAMEEX(AYOBJECTID bigint, AYATYPE integer, TRANSLATIONID integer) RETURNS text LANGUAGE 'plpgsql' COST 100 STABLE PARALLEL UNSAFE AS $BODY$
|
||||
DECLARE
|
||||
CREATE OR REPLACE FUNCTION PUBLIC.AYGETNAMEEX(AYOBJECTID bigint, AYATYPE integer, TRANSLATIONID integer) RETURNS text LANGUAGE 'plpgsql' COST 100 STABLE PARALLEL UNSAFE AS $BODY$
|
||||
DECLARE
|
||||
aytable TEXT DEFAULT '';
|
||||
aynamecolumn TEXT DEFAULT 'name';
|
||||
aytkey TEXT DEFAULT 'no';
|
||||
returnstr TEXT DEFAULT '';
|
||||
BEGIN
|
||||
BEGIN
|
||||
case ayatype
|
||||
when 0 then aytkey= 'NoType';
|
||||
when 1 then aytkey= 'Global';
|
||||
@@ -469,12 +470,12 @@ BEGIN
|
||||
EXECUTE format('select display from atranslationitem where translationid=%L and key=%L', TRANSLATIONID, aytkey) INTO returnstr;
|
||||
END if;
|
||||
RETURN returnstr;
|
||||
END;
|
||||
$BODY$;
|
||||
END;
|
||||
$BODY$;
|
||||
|
||||
|
||||
ALTER FUNCTION PUBLIC.AYGETNAME(bigint, integer) OWNER TO POSTGRES;
|
||||
*/
|
||||
ALTER FUNCTION PUBLIC.AYGETNAME(bigint, integer) OWNER TO POSTGRES;
|
||||
*/
|
||||
|
||||
//Name fetcher function
|
||||
//CoreBizObject ADD here
|
||||
@@ -1334,6 +1335,11 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
|
||||
|
||||
//Global customer default workorder report default
|
||||
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column customerdefaultworkorderreportid BIGINT REFERENCES areport(id) ");
|
||||
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column customertagworkorderreport1id BIGINT REFERENCES areport(id) ");
|
||||
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column customertagworkorderreport2id BIGINT REFERENCES areport(id) ");
|
||||
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column customertagworkorderreport3id BIGINT REFERENCES areport(id) ");
|
||||
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column customertagworkorderreport4id BIGINT REFERENCES areport(id) ");
|
||||
await ExecQueryAsync("ALTER TABLE aglobalbizsettings ADD column customertagworkorderreport5id BIGINT REFERENCES areport(id) ");
|
||||
|
||||
//Load the stock REPORT TEMPLATES
|
||||
await AyaNova.Biz.PrimeData.PrimeReportTemplates();
|
||||
|
||||
Reference in New Issue
Block a user