This commit is contained in:
2022-06-15 01:45:29 +00:00
parent eb9175153d
commit 6b3533b26a
5 changed files with 72 additions and 3 deletions

View File

@@ -1326,7 +1326,9 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
await SetSchemaLevelAsync(++currentSchema);
}
////////////////////////////////////////////////
// rc 2 integration objects for QBI etc
//
if (currentSchema < 4)
{
LogUpdateMessage(log);
@@ -1340,7 +1342,12 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
+ "atype INTEGER NOT NULL, objectid BIGINT NOT NULL, integrationitemid TEXT NOT NULL, lastsync TIMESTAMPTZ, integrationitemdata TEXT "
+ ")");
//INTEGRATIONLOG
await ExecQueryAsync("CREATE TABLE aintegrationlog (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, integrationappid uuid NOT NULL, created TIMESTAMPTZ NOT NULL, statustext TEXT NOT NULL)");
//Trans keys must come in a subsequent schema update when get to front end UI code
//UPDATED NAME FETCHER FOR INTEGRATION
await ExecQueryAsync(@"
CREATE OR REPLACE FUNCTION PUBLIC.AYGETNAME(IN AYOBJECTID BIGINT, IN AYATYPE INTEGER,TRANSLATIONID integer) RETURNS TEXT AS $BODY$
DECLARE