This commit is contained in:
2020-12-29 20:27:30 +00:00
parent d80f8aaa53
commit dd1ae6a6ba
2 changed files with 6 additions and 11 deletions

View File

@@ -381,7 +381,7 @@ BEGIN
when 52 then aytable = 'areminder';
when 53 then return 'LT:UnitMeterReading';
when 54 then aytable = 'acustomerservicerequest';
when 55 then return 'LT:ServiceBank';
when 55 then aytable = 'aservicebank';
when 56 then return 'LT:OpsNotificationSettings';
when 57 then aytable = 'areport';
when 58 then return 'LT:DashBoardView';
@@ -620,7 +620,7 @@ $BODY$ LANGUAGE PLPGSQL STABLE");
//SERVICE BANK
await ExecQueryAsync("CREATE TABLE aservicebank (id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, name text not null, " +
"entrydate timestamp not null, lastentrydate timestamp not null, objecttype integer not null, objectid bigint not null, sourcetype integer not null, sourceid bigint not null, " +
"entrydate timestamp not null, lastentrydate timestamp, objecttype integer not null, objectid bigint not null, sourcetype integer not null, sourceid bigint not null, " +
"incidents decimal(19,4) not null, incidentsbalance decimal(19,4) not null, lastincidentsbalance decimal(19,4), " +
"currency decimal(19,4) not null, currencybalance decimal(19,4) not null, lastcurrencybalance decimal(19,4), " +
"hours decimal(19,4) not null, hoursbalance decimal(19,4) not null, lasthoursbalance decimal(19,4), "+