2021-10-01T17:40:18,171 INFO [vert.x-eventloop-thread-1] RestRouting invoking postTenant 2021-10-01T17:40:18,197 INFO [vert.x-eventloop-thread-1] LoadConfs File does not exist: /postgres-conf.json 2021-10-01T17:40:18,197 INFO [vert.x-eventloop-thread-1] LoadConfs Resource has been loaded: /postgres-conf.json 2021-10-01T17:40:18,209 INFO [vert.x-eventloop-thread-1] PostgresClient postgreSQLClientConfig = {"host":"localhost","port":5432,"database":"okapi_modules","username":"folio_admin","password":"...","postgres_tester":false} 2021-10-01T17:40:18,812 INFO [vert.x-eventloop-thread-1] PostgresClient Executing multiple statements with id -2124154031 2021-10-01T17:40:18,826 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER ROLE diku_mod_finance_storage SET search_path = "$user"; 2021-10-01T17:40:18,827 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER ROLE diku_mod_finance_storage SET search_path = "$user"; 2021-10-01T17:40:18,827 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN -- This only succeeds if show_trgm, a pg_trgm function, -- has been loaded into public schema. PERFORM public.show_trgm('a'); EXCEPTION WHEN undefined_function THEN BEGIN ALTER EXTENSION pg_trgm SET SCHEMA public; EXCEPTION WHEN undefined_object THEN NULL; END; END; END $$; 2021-10-01T17:40:18,831 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN -- This only succeeds if show_trgm, a pg_trgm function, -- has been loaded into public schema. PERFORM public.show_trgm('a'); EXCEPTION WHEN undefined_function THEN BEGIN ALTER EXTENSION pg_trgm SET SCHEMA public; EXCEPTION WHEN undefined_object THEN NULL; END; END; END $$; 2021-10-01T17:40:18,831 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE EXTENSION IF NOT EXISTS unaccent WITH SCHEMA public; 2021-10-01T17:40:18,833 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42710', message='extension "unaccent" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='extension.c', line='1761', routine='CreateExtension', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:18,833 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE EXTENSION IF NOT EXISTS unaccent WITH SCHEMA public; 2021-10-01T17:40:18,834 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public; 2021-10-01T17:40:18,834 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42710', message='extension "pg_trgm" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='extension.c', line='1761', routine='CreateExtension', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:18,835 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE EXTENSION IF NOT EXISTS pg_trgm WITH SCHEMA public; 2021-10-01T17:40:18,835 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE TABLE IF NOT EXISTS diku_mod_finance_storage.rmb_job ( id UUID PRIMARY KEY, jsonb JSONB NOT NULL ); 2021-10-01T17:40:18,835 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "rmb_job" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='parse_utilcmd.c', line='209', routine='transformCreateStmt', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:18,836 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE TABLE IF NOT EXISTS diku_mod_finance_storage.rmb_job ( id UUID PRIMARY KEY, jsonb JSONB NOT NULL ); 2021-10-01T17:40:18,916 INFO [vert.x-eventloop-thread-1] LogUtil 127.0.0.1:40260 POST /_/tenant null HTTP_1_1 201 284 967 tid=diku Created 2021-10-01T17:40:18,989 INFO [vert.x-eventloop-thread-1] PostgresClient Executing multiple statements with id 1179700432 2021-10-01T17:40:18,994 INFO [vert.x-eventloop-thread-1] RestRouting invoking getTenantByOperationId 2021-10-01T17:40:18,996 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} SET search_path TO diku_mod_finance_storage; 2021-10-01T17:40:18,997 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed SET search_path TO diku_mod_finance_storage; 2021-10-01T17:40:18,997 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE TABLE IF NOT EXISTS diku_mod_finance_storage.rmb_internal_index ( name text PRIMARY KEY, def text NOT NULL, remove boolean NOT NULL ); 2021-10-01T17:40:19,000 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "rmb_internal_index" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='parse_utilcmd.c', line='209', routine='transformCreateStmt', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,001 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE TABLE IF NOT EXISTS diku_mod_finance_storage.rmb_internal_index ( name text PRIMARY KEY, def text NOT NULL, remove boolean NOT NULL ); 2021-10-01T17:40:19,001 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} UPDATE diku_mod_finance_storage.rmb_internal_index SET remove = TRUE; 2021-10-01T17:40:19,004 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed UPDATE diku_mod_finance_storage.rmb_internal_index SET remove = TRUE; 2021-10-01T17:40:19,004 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE TABLE IF NOT EXISTS rmb_internal_analyze ( tablename text ); 2021-10-01T17:40:19,009 INFO [vert.x-eventloop-thread-1] LogUtil 127.0.0.1:40260 GET /_/tenant/2046aaa6-47f7-4b10-9764-ce36207a2b09 null HTTP_1_1 200 284 16 tid=diku OK 2021-10-01T17:40:19,009 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "rmb_internal_analyze" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='parse_utilcmd.c', line='209', routine='transformCreateStmt', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,009 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE TABLE IF NOT EXISTS rmb_internal_analyze ( tablename text ); 2021-10-01T17:40:19,009 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.count_estimate_smart2(bigint,bigint,text); 2021-10-01T17:40:19,012 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.count_estimate_smart2(bigint,bigint,text); 2021-10-01T17:40:19,012 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE FUNCTION diku_mod_finance_storage.count_estimate_smart2(rows bigint, lim bigint, query text) RETURNS bigint AS $$ DECLARE rec record; cnt bigint; BEGIN IF rows = lim THEN FOR rec IN EXECUTE 'EXPLAIN ' || query LOOP cnt := substring(rec."QUERY PLAN" FROM ' rows=([[:digit:]]+)'); EXIT WHEN cnt IS NOT NULL; END LOOP; RETURN cnt; END IF; RETURN rows; END; $$ LANGUAGE plpgsql VOLATILE STRICT; 2021-10-01T17:40:19,015 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE FUNCTION diku_mod_finance_storage.count_estimate_smart2(rows bigint, lim bigint, query text) RETURNS bigint AS $$ DECLARE rec record; cnt bigint; BEGIN IF rows = lim THEN FOR rec IN EXECUTE 'EXPLAIN ' || query LOOP cnt := substring(rec."QUERY PLAN" FROM ' rows=([[:digit:]]+)'); EXIT WHEN cnt IS NOT NULL; END LOOP; RETURN cnt; END IF; RETURN rows; END; $$ LANGUAGE plpgsql VOLATILE STRICT; 2021-10-01T17:40:19,015 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.count_estimate_default(query text) RETURNS bigint AS $$ DECLARE rows bigint; q text; BEGIN q = 'SELECT COUNT(*) FROM (' || query || ' LIMIT 20000) x'; EXECUTE q INTO rows; IF rows < 20000 THEN return rows; END IF; rows = diku_mod_finance_storage.count_estimate_smart2(20000, 20000, query); IF rows < 20000 THEN return 20000; END IF; RETURN rows; END; $$ LANGUAGE plpgsql IMMUTABLE STRICT; 2021-10-01T17:40:19,017 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.count_estimate_default(query text) RETURNS bigint AS $$ DECLARE rows bigint; q text; BEGIN q = 'SELECT COUNT(*) FROM (' || query || ' LIMIT 20000) x'; EXECUTE q INTO rows; IF rows < 20000 THEN return rows; END IF; rows = diku_mod_finance_storage.count_estimate_smart2(20000, 20000, query); IF rows < 20000 THEN return 20000; END IF; RETURN rows; END; $$ LANGUAGE plpgsql IMMUTABLE STRICT; 2021-10-01T17:40:19,017 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.count_estimate(query text) RETURNS bigint AS $$ DECLARE count bigint; est_count bigint; q text; BEGIN est_count = diku_mod_finance_storage.count_estimate_smart2(20000, 20000, query); IF est_count > 4*20000 THEN RETURN est_count; END IF; q = 'SELECT COUNT(*) FROM (' || query || ' LIMIT 20000) x'; EXECUTE q INTO count; IF count < 20000 THEN RETURN count; END IF; IF est_count < 20000 THEN RETURN 20000; END IF; RETURN est_count; END; $$ LANGUAGE plpgsql STABLE STRICT; 2021-10-01T17:40:19,019 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.count_estimate(query text) RETURNS bigint AS $$ DECLARE count bigint; est_count bigint; q text; BEGIN est_count = diku_mod_finance_storage.count_estimate_smart2(20000, 20000, query); IF est_count > 4*20000 THEN RETURN est_count; END IF; q = 'SELECT COUNT(*) FROM (' || query || ' LIMIT 20000) x'; EXECUTE q INTO count; IF count < 20000 THEN RETURN count; END IF; IF est_count < 20000 THEN RETURN 20000; END IF; RETURN est_count; END; $$ LANGUAGE plpgsql STABLE STRICT; 2021-10-01T17:40:19,019 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.upsert(text, uuid, anyelement) RETURNS uuid AS $$ DECLARE ret uuid; BEGIN EXECUTE format('UPDATE diku_mod_finance_storage.%I SET jsonb=$3 WHERE id=$2 RETURNING id', $1) USING $1, $2, $3 INTO ret; IF ret IS NOT NULL THEN RETURN ret; END IF; EXECUTE format('INSERT INTO diku_mod_finance_storage.%I (id, jsonb) VALUES ($2, $3) RETURNING id', $1) USING $1, $2, $3 INTO STRICT ret; RETURN ret; END; $$ LANGUAGE plpgsql; 2021-10-01T17:40:19,020 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.upsert(text, uuid, anyelement) RETURNS uuid AS $$ DECLARE ret uuid; BEGIN EXECUTE format('UPDATE diku_mod_finance_storage.%I SET jsonb=$3 WHERE id=$2 RETURNING id', $1) USING $1, $2, $3 INTO ret; IF ret IS NOT NULL THEN RETURN ret; END IF; EXECUTE format('INSERT INTO diku_mod_finance_storage.%I (id, jsonb) VALUES ($2, $3) RETURNING id', $1) USING $1, $2, $3 INTO STRICT ret; RETURN ret; END; $$ LANGUAGE plpgsql; 2021-10-01T17:40:19,020 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE ver integer; BEGIN SELECT current_setting('server_version_num') INTO ver; IF (ver >= 120000) THEN CREATE OR REPLACE FUNCTION diku_mod_finance_storage.f_unaccent(text) RETURNS text AS $f_unaccent$ SELECT public.unaccent('public.unaccent', $1) -- schema-qualify function and dictionary $f_unaccent$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; ELSE CREATE OR REPLACE FUNCTION diku_mod_finance_storage.f_unaccent(text) RETURNS text AS $f_unaccent$ SELECT regexp_replace(public.unaccent('public.unaccent', $1), E'[\u0300\u0301\u0302\u0303\u0304\u0305\u0306\u0307\u0308\u0309\u030a\u030b\u030c\u030d\u030e\u030f' || E'\u0310\u0311\u0312\u0313\u0314\u0315\u0316\u0317\u0318\u0319\u031a\u031b\u031c\u031d\u031e\u031f' || E'\u0320\u0321\u0322\u0323\u0324\u0325\u0326\u0327\u0328\u0329\u032a\u032b\u032c\u032d\u032e\u032f' || E'\u0330\u0331\u0332\u0333\u0334\u0335\u0336\u0337\u0338\u0339\u033a\u033b\u033c\u033d\u033e\u033f' || E'\u0340\u0341\u0342\u0343\u0344\u0345\u0346\u0347\u0348\u0349\u034a\u034b\u034c\u034d\u034e\u034f' || E'\u0350\u0351\u0352\u0353\u0354\u0355\u0356\u0357\u0358\u0359\u035a\u035b\u035c\u035d\u035e\u035f' || E'\u0360\u0361\u0362' || E'\u20dd\u20de\u20df\u20e0' || E'\u20e2\u20e3\u20e4]', '', 'g') $f_unaccent$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; END IF; END $$; 2021-10-01T17:40:19,023 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE ver integer; BEGIN SELECT current_setting('server_version_num') INTO ver; IF (ver >= 120000) THEN CREATE OR REPLACE FUNCTION diku_mod_finance_storage.f_unaccent(text) RETURNS text AS $f_unaccent$ SELECT public.unaccent('public.unaccent', $1) -- schema-qualify function and dictionary $f_unaccent$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; ELSE CREATE OR REPLACE FUNCTION diku_mod_finance_storage.f_unaccent(text) RETURNS text AS $f_unaccent$ SELECT regexp_replace(public.unaccent('public.unaccent', $1), E'[\u0300\u0301\u0302\u0303\u0304\u0305\u0306\u0307\u0308\u0309\u030a\u030b\u030c\u030d\u030e\u030f' || E'\u0310\u0311\u0312\u0313\u0314\u0315\u0316\u0317\u0318\u0319\u031a\u031b\u031c\u031d\u031e\u031f' || E'\u0320\u0321\u0322\u0323\u0324\u0325\u0326\u0327\u0328\u0329\u032a\u032b\u032c\u032d\u032e\u032f' || E'\u0330\u0331\u0332\u0333\u0334\u0335\u0336\u0337\u0338\u0339\u033a\u033b\u033c\u033d\u033e\u033f' || E'\u0340\u0341\u0342\u0343\u0344\u0345\u0346\u0347\u0348\u0349\u034a\u034b\u034c\u034d\u034e\u034f' || E'\u0350\u0351\u0352\u0353\u0354\u0355\u0356\u0357\u0358\u0359\u035a\u035b\u035c\u035d\u035e\u035f' || E'\u0360\u0361\u0362' || E'\u20dd\u20de\u20df\u20e0' || E'\u20e2\u20e3\u20e4]', '', 'g') $f_unaccent$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; END IF; END $$; 2021-10-01T17:40:19,023 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.get_tsvector(text) RETURNS tsvector AS $$ SELECT to_tsvector('simple', translate($1, '&', ',')); $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,025 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.get_tsvector(text) RETURNS tsvector AS $$ SELECT to_tsvector('simple', translate($1, '&', ',')); $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,025 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.tsquery_and(text) RETURNS tsquery AS $$ SELECT to_tsquery('simple', string_agg(CASE WHEN length(v) = 0 OR v = '*' THEN '' WHEN right(v, 1) = '*' THEN '''' || left(v, -1) || ''':*' ELSE '''' || v || '''' END, '&')) FROM (SELECT regexp_split_to_table(translate($1, '&''', ',,'), ' +')) AS x(v); $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,026 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.tsquery_and(text) RETURNS tsquery AS $$ SELECT to_tsquery('simple', string_agg(CASE WHEN length(v) = 0 OR v = '*' THEN '' WHEN right(v, 1) = '*' THEN '''' || left(v, -1) || ''':*' ELSE '''' || v || '''' END, '&')) FROM (SELECT regexp_split_to_table(translate($1, '&''', ',,'), ' +')) AS x(v); $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,026 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.tsquery_or(text) RETURNS tsquery AS $$ SELECT replace(diku_mod_finance_storage.tsquery_and($1)::text, '&', '|')::tsquery; $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,027 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.tsquery_or(text) RETURNS tsquery AS $$ SELECT replace(diku_mod_finance_storage.tsquery_and($1)::text, '&', '|')::tsquery; $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,027 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.tsquery_phrase(text) RETURNS tsquery AS $$ SELECT replace(diku_mod_finance_storage.tsquery_and($1)::text, '&', '<->')::tsquery; $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,028 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.tsquery_phrase(text) RETURNS tsquery AS $$ SELECT replace(diku_mod_finance_storage.tsquery_and($1)::text, '&', '<->')::tsquery; $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,028 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.normalize_digits(text) RETURNS text AS $$ SELECT translate((regexp_match($1, '^([0-9 \t-]*(?:\*[ \t]*)?)(.*)'))[1], E' \t-', '') || CASE WHEN (regexp_match($1, '^([0-9 \t-]*(?:\*[ \t]*)?)(.*)'))[1] = '' THEN '' WHEN (regexp_match($1, '^([0-9 \t-]*(?:\*[ \t]*)?)(.*)'))[2] = '' THEN '' ELSE ' ' END || (regexp_match($1, '^([0-9 \t-]*(?:\*[ \t]*)?)(.*)'))[2]; $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,030 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.normalize_digits(text) RETURNS text AS $$ SELECT translate((regexp_match($1, '^([0-9 \t-]*(?:\*[ \t]*)?)(.*)'))[1], E' \t-', '') || CASE WHEN (regexp_match($1, '^([0-9 \t-]*(?:\*[ \t]*)?)(.*)'))[1] = '' THEN '' WHEN (regexp_match($1, '^([0-9 \t-]*(?:\*[ \t]*)?)(.*)'))[2] = '' THEN '' ELSE ' ' END || (regexp_match($1, '^([0-9 \t-]*(?:\*[ \t]*)?)(.*)'))[2]; $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,030 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.set_id_in_jsonb() RETURNS TRIGGER AS $$ BEGIN NEW.jsonb = jsonb_set(NEW.jsonb, '{id}', to_jsonb(NEW.id)); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,031 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.set_id_in_jsonb() RETURNS TRIGGER AS $$ BEGIN NEW.jsonb = jsonb_set(NEW.jsonb, '{id}', to_jsonb(NEW.id)); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,031 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} create or replace function diku_mod_finance_storage.concat_space_sql(VARIADIC text[]) RETURNS text AS $$ select concat_ws(' ', VARIADIC $1); $$ LANGUAGE SQL IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,032 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed create or replace function diku_mod_finance_storage.concat_space_sql(VARIADIC text[]) RETURNS text AS $$ select concat_ws(' ', VARIADIC $1); $$ LANGUAGE SQL IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,033 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} create or replace function diku_mod_finance_storage.concat_array_object_values(jsonb_array jsonb, field text) RETURNS text AS $$ SELECT string_agg(value->>$2, ' ') FROM jsonb_array_elements($1); $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,034 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed create or replace function diku_mod_finance_storage.concat_array_object_values(jsonb_array jsonb, field text) RETURNS text AS $$ SELECT string_agg(value->>$2, ' ') FROM jsonb_array_elements($1); $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,034 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} create or replace function diku_mod_finance_storage.concat_array_object_values( jsonb_array jsonb, field text, filterkey text, filtervalue text) RETURNS text AS $$ SELECT string_agg(value->>$2, ' ') FROM jsonb_array_elements($1) WHERE value->>$3 = $4; $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,035 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed create or replace function diku_mod_finance_storage.concat_array_object_values( jsonb_array jsonb, field text, filterkey text, filtervalue text) RETURNS text AS $$ SELECT string_agg(value->>$2, ' ') FROM jsonb_array_elements($1) WHERE value->>$3 = $4; $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,035 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} create or replace function diku_mod_finance_storage.first_array_object_value( jsonb_array jsonb, field text, filterkey text, filtervalue text) RETURNS text AS $$ SELECT value->>$2 FROM jsonb_array_elements($1) WHERE value->>$3 = $4 LIMIT 1; $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,035 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed create or replace function diku_mod_finance_storage.first_array_object_value( jsonb_array jsonb, field text, filterkey text, filtervalue text) RETURNS text AS $$ SELECT value->>$2 FROM jsonb_array_elements($1) WHERE value->>$3 = $4 LIMIT 1; $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,035 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} create or replace function diku_mod_finance_storage.concat_array_object(jsonb_array jsonb) RETURNS text AS $$ SELECT string_agg(value::text, ' ') FROM jsonb_array_elements_text($1); $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,036 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed create or replace function diku_mod_finance_storage.concat_array_object(jsonb_array jsonb) RETURNS text AS $$ SELECT string_agg(value::text, ' ') FROM jsonb_array_elements_text($1); $$ LANGUAGE sql IMMUTABLE PARALLEL SAFE STRICT; 2021-10-01T17:40:19,036 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS rmb_internal_index(aname text, tops text, newdef text); 2021-10-01T17:40:19,037 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function rmb_internal_index(text,text,text) does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,037 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS rmb_internal_index(aname text, tops text, newdef text); 2021-10-01T17:40:19,037 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION rmb_internal_index( atable text, aname text, tops text, newdef text) RETURNS void AS $$ DECLARE olddef text; namep CONSTANT text = concat(aname, '_p'); prepareddef text; BEGIN IF tops = 'DELETE' THEN -- use case insensitive %s, not case sensitive %I -- no SQL injection because the names are hard-coded in schema.json EXECUTE format('DROP INDEX IF EXISTS %s', aname); EXECUTE 'DELETE FROM diku_mod_finance_storage.rmb_internal_index WHERE name = $1' USING aname; RETURN; END IF; SELECT def INTO olddef FROM diku_mod_finance_storage.rmb_internal_index WHERE name = aname; SELECT def INTO prepareddef FROM diku_mod_finance_storage.rmb_internal_index WHERE name = namep; prepareddef = replace(prepareddef, concat(' ', namep, ' ON '), concat(' ', aname, ' ON ')); IF prepareddef = newdef THEN EXECUTE format('DROP INDEX IF EXISTS %s', aname); EXECUTE format('ALTER INDEX IF EXISTS %s RENAME TO %s', namep, aname); EXECUTE 'DELETE FROM rmb_internal_index WHERE name = $1' USING namep; EXECUTE 'INSERT INTO rmb_internal_analyze VALUES ($1)' USING atable; ELSIF olddef IS DISTINCT FROM newdef THEN EXECUTE format('DROP INDEX IF EXISTS %s', aname); EXECUTE newdef; EXECUTE 'INSERT INTO rmb_internal_analyze VALUES ($1)' USING atable; END IF; EXECUTE 'INSERT INTO diku_mod_finance_storage.rmb_internal_index VALUES ($1, $2, FALSE) ' 'ON CONFLICT (name) DO UPDATE SET def = EXCLUDED.def, remove = EXCLUDED.remove' USING aname, newdef; END $$ LANGUAGE plpgsql; 2021-10-01T17:40:19,039 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION rmb_internal_index( atable text, aname text, tops text, newdef text) RETURNS void AS $$ DECLARE olddef text; namep CONSTANT text = concat(aname, '_p'); prepareddef text; BEGIN IF tops = 'DELETE' THEN -- use case insensitive %s, not case sensitive %I -- no SQL injection because the names are hard-coded in schema.json EXECUTE format('DROP INDEX IF EXISTS %s', aname); EXECUTE 'DELETE FROM diku_mod_finance_storage.rmb_internal_index WHERE name = $1' USING aname; RETURN; END IF; SELECT def INTO olddef FROM diku_mod_finance_storage.rmb_internal_index WHERE name = aname; SELECT def INTO prepareddef FROM diku_mod_finance_storage.rmb_internal_index WHERE name = namep; prepareddef = replace(prepareddef, concat(' ', namep, ' ON '), concat(' ', aname, ' ON ')); IF prepareddef = newdef THEN EXECUTE format('DROP INDEX IF EXISTS %s', aname); EXECUTE format('ALTER INDEX IF EXISTS %s RENAME TO %s', namep, aname); EXECUTE 'DELETE FROM rmb_internal_index WHERE name = $1' USING namep; EXECUTE 'INSERT INTO rmb_internal_analyze VALUES ($1)' USING atable; ELSIF olddef IS DISTINCT FROM newdef THEN EXECUTE format('DROP INDEX IF EXISTS %s', aname); EXECUTE newdef; EXECUTE 'INSERT INTO rmb_internal_analyze VALUES ($1)' USING atable; END IF; EXECUTE 'INSERT INTO diku_mod_finance_storage.rmb_internal_index VALUES ($1, $2, FALSE) ' 'ON CONFLICT (name) DO UPDATE SET def = EXCLUDED.def, remove = EXCLUDED.remove' USING aname, newdef; END $$ LANGUAGE plpgsql; 2021-10-01T17:40:19,039 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN -- use advisory lock to prevent "tuple concurrently updated" -- https://issues.folio.org/browse/RMB-744 PERFORM pg_advisory_xact_lock(20201101, 1234567890); REVOKE ALL PRIVILEGES ON SCHEMA public FROM diku_mod_finance_storage; REVOKE CREATE ON SCHEMA public FROM PUBLIC; END $$; 2021-10-01T17:40:19,041 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN -- use advisory lock to prevent "tuple concurrently updated" -- https://issues.folio.org/browse/RMB-744 PERFORM pg_advisory_xact_lock(20201101, 1234567890); REVOKE ALL PRIVILEGES ON SCHEMA public FROM diku_mod_finance_storage; REVOKE CREATE ON SCHEMA public FROM PUBLIC; END $$; 2021-10-01T17:40:19,041 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'expense_class', 'expense_class_name_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS expense_class_name_idx_unique ON diku_mod_finance_storage.expense_class ' || $rmb$(lower(f_unaccent(jsonb->>'name')))$rmb$ ); END $do$; 2021-10-01T17:40:19,044 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'expense_class', 'expense_class_name_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS expense_class_name_idx_unique ON diku_mod_finance_storage.expense_class ' || $rmb$(lower(f_unaccent(jsonb->>'name')))$rmb$ ); END $do$; 2021-10-01T17:40:19,044 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'expense_class', 'expense_class_code_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS expense_class_code_idx_unique ON diku_mod_finance_storage.expense_class ' || $rmb$(lower(f_unaccent(jsonb->>'code')))$rmb$ ); END $do$; 2021-10-01T17:40:19,045 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'expense_class', 'expense_class_code_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS expense_class_code_idx_unique ON diku_mod_finance_storage.expense_class ' || $rmb$(lower(f_unaccent(jsonb->>'code')))$rmb$ ); END $do$; 2021-10-01T17:40:19,045 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_expense_class_references ON diku_mod_finance_storage.expense_class CASCADE; 2021-10-01T17:40:19,046 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "update_expense_class_references" for relation "diku_mod_finance_storage.expense_class" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,046 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_expense_class_references ON diku_mod_finance_storage.expense_class CASCADE; 2021-10-01T17:40:19,046 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_expense_class_references(); 2021-10-01T17:40:19,047 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.update_expense_class_references() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,047 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_expense_class_references(); 2021-10-01T17:40:19,047 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_expense_class_ol_version_trigger ON diku_mod_finance_storage.expense_class CASCADE; 2021-10-01T17:40:19,048 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_expense_class_ol_version_trigger" for relation "diku_mod_finance_storage.expense_class" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,048 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_expense_class_ol_version_trigger ON diku_mod_finance_storage.expense_class CASCADE; 2021-10-01T17:40:19,048 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.expense_class_set_ol_version() CASCADE; 2021-10-01T17:40:19,049 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.expense_class_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,049 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.expense_class_set_ol_version() CASCADE; 2021-10-01T17:40:19,049 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'fiscal_year', 'fiscal_year_periodEnd_idx', 'ADD', 'CREATE INDEX IF NOT EXISTS fiscal_year_periodEnd_idx ON diku_mod_finance_storage.fiscal_year ' || $rmb$(left(lower(f_unaccent(jsonb->>'periodEnd')),600))$rmb$ ); END $do$; 2021-10-01T17:40:19,050 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'fiscal_year', 'fiscal_year_periodEnd_idx', 'ADD', 'CREATE INDEX IF NOT EXISTS fiscal_year_periodEnd_idx ON diku_mod_finance_storage.fiscal_year ' || $rmb$(left(lower(f_unaccent(jsonb->>'periodEnd')),600))$rmb$ ); END $do$; 2021-10-01T17:40:19,050 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'fiscal_year', 'fiscal_year_code_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS fiscal_year_code_idx_unique ON diku_mod_finance_storage.fiscal_year ' || $rmb$(lower(f_unaccent(jsonb->>'code')))$rmb$ ); END $do$; 2021-10-01T17:40:19,050 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'fiscal_year', 'fiscal_year_code_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS fiscal_year_code_idx_unique ON diku_mod_finance_storage.fiscal_year ' || $rmb$(lower(f_unaccent(jsonb->>'code')))$rmb$ ); END $do$; 2021-10-01T17:40:19,051 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'fiscal_year', 'fiscal_year_name_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS fiscal_year_name_idx_gin ON diku_mod_finance_storage.fiscal_year USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'name'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,052 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'fiscal_year', 'fiscal_year_name_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS fiscal_year_name_idx_gin ON diku_mod_finance_storage.fiscal_year USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'name'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,052 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'fiscal_year', 'fiscal_year_acqUnitIds_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS fiscal_year_acqUnitIds_idx_gin ON diku_mod_finance_storage.fiscal_year USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'acqUnitIds'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,053 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'fiscal_year', 'fiscal_year_acqUnitIds_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS fiscal_year_acqUnitIds_idx_gin ON diku_mod_finance_storage.fiscal_year USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'acqUnitIds'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,054 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'fiscal_year', 'fiscal_year_code_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS fiscal_year_code_idx_gin ON diku_mod_finance_storage.fiscal_year USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'code'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,055 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='index "fiscal_year_code_idx_gin" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='SQL statement "DROP INDEX IF EXISTS fiscal_year_code_idx_gin" PL/pgSQL function rmb_internal_index(text,text,text,text) line 10 at EXECUTE SQL statement "SELECT rmb_internal_index( 'fiscal_year', 'fiscal_year_code_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS fiscal_year_code_idx_gin ON diku_mod_finance_storage.fiscal_year USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'code'))) public.gin_trgm_ops)$rmb$ )" PL/pgSQL function inline_code_block line 3 at PERFORM', file='tablecmds.c', line='1194', routine='DropErrorMsgNonExistent', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,055 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'fiscal_year', 'fiscal_year_code_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS fiscal_year_code_idx_gin ON diku_mod_finance_storage.fiscal_year USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'code'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,055 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'fiscal_year', 'fiscal_year_series_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS fiscal_year_series_idx_gin ON diku_mod_finance_storage.fiscal_year USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'series'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,057 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'fiscal_year', 'fiscal_year_series_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS fiscal_year_series_idx_gin ON diku_mod_finance_storage.fiscal_year USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'series'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,057 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_fiscal_year_references ON diku_mod_finance_storage.fiscal_year CASCADE; 2021-10-01T17:40:19,058 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "update_fiscal_year_references" for relation "diku_mod_finance_storage.fiscal_year" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,058 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_fiscal_year_references ON diku_mod_finance_storage.fiscal_year CASCADE; 2021-10-01T17:40:19,058 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_fiscal_year_references(); 2021-10-01T17:40:19,058 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.update_fiscal_year_references() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,059 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_fiscal_year_references(); 2021-10-01T17:40:19,059 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_fiscal_year_ol_version_trigger ON diku_mod_finance_storage.fiscal_year CASCADE; 2021-10-01T17:40:19,059 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_fiscal_year_ol_version_trigger" for relation "diku_mod_finance_storage.fiscal_year" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,059 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_fiscal_year_ol_version_trigger ON diku_mod_finance_storage.fiscal_year CASCADE; 2021-10-01T17:40:19,059 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.fiscal_year_set_ol_version() CASCADE; 2021-10-01T17:40:19,060 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.fiscal_year_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,060 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.fiscal_year_set_ol_version() CASCADE; 2021-10-01T17:40:19,060 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger', 'ledger_ledgerStatus_idx', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_ledgerStatus_idx ON diku_mod_finance_storage.ledger ' || $rmb$(left(lower(f_unaccent(jsonb->>'ledgerStatus')),600))$rmb$ ); END $do$; 2021-10-01T17:40:19,061 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger', 'ledger_ledgerStatus_idx', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_ledgerStatus_idx ON diku_mod_finance_storage.ledger ' || $rmb$(left(lower(f_unaccent(jsonb->>'ledgerStatus')),600))$rmb$ ); END $do$; 2021-10-01T17:40:19,061 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger', 'ledger_name_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS ledger_name_idx_unique ON diku_mod_finance_storage.ledger ' || $rmb$(lower(f_unaccent(jsonb->>'name')))$rmb$ ); END $do$; 2021-10-01T17:40:19,062 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger', 'ledger_name_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS ledger_name_idx_unique ON diku_mod_finance_storage.ledger ' || $rmb$(lower(f_unaccent(jsonb->>'name')))$rmb$ ); END $do$; 2021-10-01T17:40:19,062 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger', 'ledger_code_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS ledger_code_idx_unique ON diku_mod_finance_storage.ledger ' || $rmb$(lower(f_unaccent(jsonb->>'code')))$rmb$ ); END $do$; 2021-10-01T17:40:19,063 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger', 'ledger_code_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS ledger_code_idx_unique ON diku_mod_finance_storage.ledger ' || $rmb$(lower(f_unaccent(jsonb->>'code')))$rmb$ ); END $do$; 2021-10-01T17:40:19,063 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger', 'ledger_name_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_name_idx_gin ON diku_mod_finance_storage.ledger USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'name'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,064 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger', 'ledger_name_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_name_idx_gin ON diku_mod_finance_storage.ledger USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'name'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,064 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger', 'ledger_code_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_code_idx_gin ON diku_mod_finance_storage.ledger USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'code'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,065 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger', 'ledger_code_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_code_idx_gin ON diku_mod_finance_storage.ledger USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'code'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,065 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger', 'ledger_acqUnitIds_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_acqUnitIds_idx_gin ON diku_mod_finance_storage.ledger USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'acqUnitIds'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,067 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger', 'ledger_acqUnitIds_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_acqUnitIds_idx_gin ON diku_mod_finance_storage.ledger USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'acqUnitIds'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,067 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.ledger ADD COLUMN IF NOT EXISTS fiscalYearOneId UUID; 2021-10-01T17:40:19,068 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "fiscalyearoneid" of relation "ledger" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,068 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.ledger ADD COLUMN IF NOT EXISTS fiscalYearOneId UUID; 2021-10-01T17:40:19,068 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE ledger ADD CONSTRAINT fiscalYearOneId_fiscal_year_fkey FOREIGN KEY (fiscalYearOneId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,070 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE ledger ADD CONSTRAINT fiscalYearOneId_fiscal_year_fkey FOREIGN KEY (fiscalYearOneId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,070 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS ledger_fiscalYearOneId_idx ON diku_mod_finance_storage.ledger (fiscalYearOneId); 2021-10-01T17:40:19,071 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "ledger_fiscalyearoneid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,071 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS ledger_fiscalYearOneId_idx ON diku_mod_finance_storage.ledger (fiscalYearOneId); 2021-10-01T17:40:19,071 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('ledger'); 2021-10-01T17:40:19,072 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('ledger'); 2021-10-01T17:40:19,072 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_ledger_references() RETURNS TRIGGER AS $$ BEGIN NEW.fiscalYearOneId = (NEW.jsonb->>'fiscalYearOneId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,073 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_ledger_references() RETURNS TRIGGER AS $$ BEGIN NEW.fiscalYearOneId = (NEW.jsonb->>'fiscalYearOneId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,073 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_ledger_references ON diku_mod_finance_storage.ledger CASCADE; 2021-10-01T17:40:19,076 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_ledger_references ON diku_mod_finance_storage.ledger CASCADE; 2021-10-01T17:40:19,076 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE TRIGGER update_ledger_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.ledger FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_ledger_references(); 2021-10-01T17:40:19,078 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE TRIGGER update_ledger_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.ledger FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_ledger_references(); 2021-10-01T17:40:19,078 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE ledger DROP CONSTRAINT IF EXISTS ' || 'fiscalYearOneId_fiscal_year_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,080 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE ledger DROP CONSTRAINT IF EXISTS ' || 'fiscalYearOneId_fiscal_year_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,080 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_ledger_ol_version_trigger ON diku_mod_finance_storage.ledger CASCADE; 2021-10-01T17:40:19,081 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_ledger_ol_version_trigger" for relation "diku_mod_finance_storage.ledger" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,081 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_ledger_ol_version_trigger ON diku_mod_finance_storage.ledger CASCADE; 2021-10-01T17:40:19,081 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.ledger_set_ol_version() CASCADE; 2021-10-01T17:40:19,082 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.ledger_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,082 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.ledger_set_ol_version() CASCADE; 2021-10-01T17:40:19,082 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'fund_type', 'fund_type_name_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS fund_type_name_idx_unique ON diku_mod_finance_storage.fund_type ' || $rmb$(lower(f_unaccent(jsonb->>'name')))$rmb$ ); END $do$; 2021-10-01T17:40:19,083 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'fund_type', 'fund_type_name_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS fund_type_name_idx_unique ON diku_mod_finance_storage.fund_type ' || $rmb$(lower(f_unaccent(jsonb->>'name')))$rmb$ ); END $do$; 2021-10-01T17:40:19,083 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_fund_type_references ON diku_mod_finance_storage.fund_type CASCADE; 2021-10-01T17:40:19,083 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "update_fund_type_references" for relation "diku_mod_finance_storage.fund_type" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,083 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_fund_type_references ON diku_mod_finance_storage.fund_type CASCADE; 2021-10-01T17:40:19,083 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_fund_type_references(); 2021-10-01T17:40:19,084 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.update_fund_type_references() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,084 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_fund_type_references(); 2021-10-01T17:40:19,084 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_fund_type_ol_version_trigger ON diku_mod_finance_storage.fund_type CASCADE; 2021-10-01T17:40:19,085 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_fund_type_ol_version_trigger" for relation "diku_mod_finance_storage.fund_type" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,085 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_fund_type_ol_version_trigger ON diku_mod_finance_storage.fund_type CASCADE; 2021-10-01T17:40:19,085 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.fund_type_set_ol_version() CASCADE; 2021-10-01T17:40:19,085 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.fund_type_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,085 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.fund_type_set_ol_version() CASCADE; 2021-10-01T17:40:19,086 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'fund', 'fund_code_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS fund_code_idx_unique ON diku_mod_finance_storage.fund ' || $rmb$(lower(f_unaccent(jsonb->>'code')))$rmb$ ); END $do$; 2021-10-01T17:40:19,086 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'fund', 'fund_code_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS fund_code_idx_unique ON diku_mod_finance_storage.fund ' || $rmb$(lower(f_unaccent(jsonb->>'code')))$rmb$ ); END $do$; 2021-10-01T17:40:19,087 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'fund', 'fund_name_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS fund_name_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'name'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,088 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'fund', 'fund_name_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS fund_name_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'name'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,088 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'fund', 'fund_acqUnitIds_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS fund_acqUnitIds_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'acqUnitIds'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,089 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'fund', 'fund_acqUnitIds_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS fund_acqUnitIds_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'acqUnitIds'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,089 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'fund', 'fund_fundStatus_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS fund_fundStatus_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'fundStatus'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,090 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'fund', 'fund_fundStatus_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS fund_fundStatus_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'fundStatus'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,091 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'fund', 'fund_code_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS fund_code_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'code'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,092 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='index "fund_code_idx_gin" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='SQL statement "DROP INDEX IF EXISTS fund_code_idx_gin" PL/pgSQL function rmb_internal_index(text,text,text,text) line 10 at EXECUTE SQL statement "SELECT rmb_internal_index( 'fund', 'fund_code_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS fund_code_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'code'))) public.gin_trgm_ops)$rmb$ )" PL/pgSQL function inline_code_block line 3 at PERFORM', file='tablecmds.c', line='1194', routine='DropErrorMsgNonExistent', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,093 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'fund', 'fund_code_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS fund_code_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'code'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,093 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'fund', 'fund_fund_status_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS fund_fund_status_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'fund_status'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,094 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='index "fund_fund_status_idx_gin" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='SQL statement "DROP INDEX IF EXISTS fund_fund_status_idx_gin" PL/pgSQL function rmb_internal_index(text,text,text,text) line 10 at EXECUTE SQL statement "SELECT rmb_internal_index( 'fund', 'fund_fund_status_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS fund_fund_status_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'fund_status'))) public.gin_trgm_ops)$rmb$ )" PL/pgSQL function inline_code_block line 3 at PERFORM', file='tablecmds.c', line='1194', routine='DropErrorMsgNonExistent', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,094 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'fund', 'fund_fund_status_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS fund_fund_status_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'fund_status'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,094 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'fund', 'fund_currency_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS fund_currency_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'currency'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,095 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='index "fund_currency_idx_gin" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='SQL statement "DROP INDEX IF EXISTS fund_currency_idx_gin" PL/pgSQL function rmb_internal_index(text,text,text,text) line 10 at EXECUTE SQL statement "SELECT rmb_internal_index( 'fund', 'fund_currency_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS fund_currency_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'currency'))) public.gin_trgm_ops)$rmb$ )" PL/pgSQL function inline_code_block line 3 at PERFORM', file='tablecmds.c', line='1194', routine='DropErrorMsgNonExistent', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,095 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'fund', 'fund_currency_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS fund_currency_idx_gin ON diku_mod_finance_storage.fund USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'currency'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,095 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.fund ADD COLUMN IF NOT EXISTS ledgerId UUID; 2021-10-01T17:40:19,096 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "ledgerid" of relation "fund" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,096 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.fund ADD COLUMN IF NOT EXISTS ledgerId UUID; 2021-10-01T17:40:19,096 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE fund ADD CONSTRAINT ledgerId_ledger_fkey FOREIGN KEY (ledgerId) REFERENCES ledger; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,097 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE fund ADD CONSTRAINT ledgerId_ledger_fkey FOREIGN KEY (ledgerId) REFERENCES ledger; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,097 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS fund_ledgerId_idx ON diku_mod_finance_storage.fund (ledgerId); 2021-10-01T17:40:19,097 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "fund_ledgerid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,097 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS fund_ledgerId_idx ON diku_mod_finance_storage.fund (ledgerId); 2021-10-01T17:40:19,097 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('fund'); 2021-10-01T17:40:19,098 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('fund'); 2021-10-01T17:40:19,098 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.fund ADD COLUMN IF NOT EXISTS fundTypeId UUID; 2021-10-01T17:40:19,099 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "fundtypeid" of relation "fund" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,099 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.fund ADD COLUMN IF NOT EXISTS fundTypeId UUID; 2021-10-01T17:40:19,099 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE fund ADD CONSTRAINT fundTypeId_fund_type_fkey FOREIGN KEY (fundTypeId) REFERENCES fund_type; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,099 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE fund ADD CONSTRAINT fundTypeId_fund_type_fkey FOREIGN KEY (fundTypeId) REFERENCES fund_type; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,099 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS fund_fundTypeId_idx ON diku_mod_finance_storage.fund (fundTypeId); 2021-10-01T17:40:19,100 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "fund_fundtypeid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,100 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS fund_fundTypeId_idx ON diku_mod_finance_storage.fund (fundTypeId); 2021-10-01T17:40:19,100 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('fund'); 2021-10-01T17:40:19,101 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('fund'); 2021-10-01T17:40:19,101 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_fund_references() RETURNS TRIGGER AS $$ BEGIN NEW.ledgerId = (NEW.jsonb->>'ledgerId'); NEW.fundTypeId = (NEW.jsonb->>'fundTypeId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,102 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_fund_references() RETURNS TRIGGER AS $$ BEGIN NEW.ledgerId = (NEW.jsonb->>'ledgerId'); NEW.fundTypeId = (NEW.jsonb->>'fundTypeId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,103 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_fund_references ON diku_mod_finance_storage.fund CASCADE; 2021-10-01T17:40:19,103 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_fund_references ON diku_mod_finance_storage.fund CASCADE; 2021-10-01T17:40:19,103 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE TRIGGER update_fund_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.fund FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_fund_references(); 2021-10-01T17:40:19,104 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE TRIGGER update_fund_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.fund FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_fund_references(); 2021-10-01T17:40:19,105 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE fund DROP CONSTRAINT IF EXISTS ' || 'ledgerId_ledger_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE fund DROP CONSTRAINT IF EXISTS ' || 'fundTypeId_fund_type_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,106 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE fund DROP CONSTRAINT IF EXISTS ' || 'ledgerId_ledger_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE fund DROP CONSTRAINT IF EXISTS ' || 'fundTypeId_fund_type_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,106 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_fund_ol_version_trigger ON diku_mod_finance_storage.fund CASCADE; 2021-10-01T17:40:19,106 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_fund_ol_version_trigger" for relation "diku_mod_finance_storage.fund" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,106 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_fund_ol_version_trigger ON diku_mod_finance_storage.fund CASCADE; 2021-10-01T17:40:19,106 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.fund_set_ol_version() CASCADE; 2021-10-01T17:40:19,107 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.fund_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,107 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.fund_set_ol_version() CASCADE; 2021-10-01T17:40:19,107 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'budget', 'budget_fundId_fiscalYearId_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS budget_fundId_fiscalYearId_idx_unique ON diku_mod_finance_storage.budget ' || $rmb$(lower(f_unaccent(jsonb->>'fundId')) , lower(f_unaccent(jsonb->>'fiscalYearId')))$rmb$ ); END $do$; 2021-10-01T17:40:19,109 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'budget', 'budget_fundId_fiscalYearId_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS budget_fundId_fiscalYearId_idx_unique ON diku_mod_finance_storage.budget ' || $rmb$(lower(f_unaccent(jsonb->>'fundId')) , lower(f_unaccent(jsonb->>'fiscalYearId')))$rmb$ ); END $do$; 2021-10-01T17:40:19,109 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'budget', 'budget_name_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS budget_name_idx_gin ON diku_mod_finance_storage.budget USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'name'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,110 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='index "budget_name_idx_gin" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='SQL statement "DROP INDEX IF EXISTS budget_name_idx_gin" PL/pgSQL function rmb_internal_index(text,text,text,text) line 10 at EXECUTE SQL statement "SELECT rmb_internal_index( 'budget', 'budget_name_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS budget_name_idx_gin ON diku_mod_finance_storage.budget USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'name'))) public.gin_trgm_ops)$rmb$ )" PL/pgSQL function inline_code_block line 3 at PERFORM', file='tablecmds.c', line='1194', routine='DropErrorMsgNonExistent', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,110 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'budget', 'budget_name_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS budget_name_idx_gin ON diku_mod_finance_storage.budget USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'name'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,110 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'budget', 'budget_code_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS budget_code_idx_gin ON diku_mod_finance_storage.budget USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'code'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,111 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='index "budget_code_idx_gin" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='SQL statement "DROP INDEX IF EXISTS budget_code_idx_gin" PL/pgSQL function rmb_internal_index(text,text,text,text) line 10 at EXECUTE SQL statement "SELECT rmb_internal_index( 'budget', 'budget_code_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS budget_code_idx_gin ON diku_mod_finance_storage.budget USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'code'))) public.gin_trgm_ops)$rmb$ )" PL/pgSQL function inline_code_block line 3 at PERFORM', file='tablecmds.c', line='1194', routine='DropErrorMsgNonExistent', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,111 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'budget', 'budget_code_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS budget_code_idx_gin ON diku_mod_finance_storage.budget USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'code'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,111 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'budget', 'budget_budget_status_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS budget_budget_status_idx_gin ON diku_mod_finance_storage.budget USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'budget_status'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,112 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='index "budget_budget_status_idx_gin" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='SQL statement "DROP INDEX IF EXISTS budget_budget_status_idx_gin" PL/pgSQL function rmb_internal_index(text,text,text,text) line 10 at EXECUTE SQL statement "SELECT rmb_internal_index( 'budget', 'budget_budget_status_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS budget_budget_status_idx_gin ON diku_mod_finance_storage.budget USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'budget_status'))) public.gin_trgm_ops)$rmb$ )" PL/pgSQL function inline_code_block line 3 at PERFORM', file='tablecmds.c', line='1194', routine='DropErrorMsgNonExistent', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,112 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'budget', 'budget_budget_status_idx_gin', 'DELETE', 'CREATE INDEX IF NOT EXISTS budget_budget_status_idx_gin ON diku_mod_finance_storage.budget USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'budget_status'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,112 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'budget', 'budget_budgetStatus_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS budget_budgetStatus_idx_gin ON diku_mod_finance_storage.budget USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'budgetStatus'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,114 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'budget', 'budget_budgetStatus_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS budget_budgetStatus_idx_gin ON diku_mod_finance_storage.budget USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'budgetStatus'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,114 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.budget ADD COLUMN IF NOT EXISTS fundId UUID; 2021-10-01T17:40:19,114 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "fundid" of relation "budget" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,114 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.budget ADD COLUMN IF NOT EXISTS fundId UUID; 2021-10-01T17:40:19,114 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE budget ADD CONSTRAINT fundId_fund_fkey FOREIGN KEY (fundId) REFERENCES fund; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,115 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE budget ADD CONSTRAINT fundId_fund_fkey FOREIGN KEY (fundId) REFERENCES fund; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,115 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS budget_fundId_idx ON diku_mod_finance_storage.budget (fundId); 2021-10-01T17:40:19,116 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "budget_fundid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,116 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS budget_fundId_idx ON diku_mod_finance_storage.budget (fundId); 2021-10-01T17:40:19,116 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('budget'); 2021-10-01T17:40:19,117 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('budget'); 2021-10-01T17:40:19,117 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.budget ADD COLUMN IF NOT EXISTS fiscalYearId UUID; 2021-10-01T17:40:19,117 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "fiscalyearid" of relation "budget" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,117 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.budget ADD COLUMN IF NOT EXISTS fiscalYearId UUID; 2021-10-01T17:40:19,117 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE budget ADD CONSTRAINT fiscalYearId_fiscal_year_fkey FOREIGN KEY (fiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,118 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE budget ADD CONSTRAINT fiscalYearId_fiscal_year_fkey FOREIGN KEY (fiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,118 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS budget_fiscalYearId_idx ON diku_mod_finance_storage.budget (fiscalYearId); 2021-10-01T17:40:19,118 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "budget_fiscalyearid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,118 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS budget_fiscalYearId_idx ON diku_mod_finance_storage.budget (fiscalYearId); 2021-10-01T17:40:19,118 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('budget'); 2021-10-01T17:40:19,119 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('budget'); 2021-10-01T17:40:19,119 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_budget_references() RETURNS TRIGGER AS $$ BEGIN NEW.fundId = (NEW.jsonb->>'fundId'); NEW.fiscalYearId = (NEW.jsonb->>'fiscalYearId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,120 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_budget_references() RETURNS TRIGGER AS $$ BEGIN NEW.fundId = (NEW.jsonb->>'fundId'); NEW.fiscalYearId = (NEW.jsonb->>'fiscalYearId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,120 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_budget_references ON diku_mod_finance_storage.budget CASCADE; 2021-10-01T17:40:19,120 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_budget_references ON diku_mod_finance_storage.budget CASCADE; 2021-10-01T17:40:19,120 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE TRIGGER update_budget_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.budget FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_budget_references(); 2021-10-01T17:40:19,121 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE TRIGGER update_budget_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.budget FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_budget_references(); 2021-10-01T17:40:19,121 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE budget DROP CONSTRAINT IF EXISTS ' || 'fundId_fund_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE budget DROP CONSTRAINT IF EXISTS ' || 'fiscalYearId_fiscal_year_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,122 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE budget DROP CONSTRAINT IF EXISTS ' || 'fundId_fund_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE budget DROP CONSTRAINT IF EXISTS ' || 'fiscalYearId_fiscal_year_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,122 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_budget_ol_version_trigger ON diku_mod_finance_storage.budget CASCADE; 2021-10-01T17:40:19,123 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_budget_ol_version_trigger" for relation "diku_mod_finance_storage.budget" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,123 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_budget_ol_version_trigger ON diku_mod_finance_storage.budget CASCADE; 2021-10-01T17:40:19,123 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.budget_set_ol_version() CASCADE; 2021-10-01T17:40:19,124 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.budget_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,124 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.budget_set_ol_version() CASCADE; 2021-10-01T17:40:19,124 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'budget_expense_class', 'budget_expense_class_budgetId_expenseClassId_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS budget_expense_class_budgetId_expenseClassId_idx_unique ON diku_mod_finance_storage.budget_expense_class ' || $rmb$(lower(f_unaccent(concat_space_sql(budget_expense_class.jsonb->>'budgetId' , budget_expense_class.jsonb->>'expenseClassId'))))$rmb$ ); END $do$; 2021-10-01T17:40:19,125 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'budget_expense_class', 'budget_expense_class_budgetId_expenseClassId_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS budget_expense_class_budgetId_expenseClassId_idx_unique ON diku_mod_finance_storage.budget_expense_class ' || $rmb$(lower(f_unaccent(concat_space_sql(budget_expense_class.jsonb->>'budgetId' , budget_expense_class.jsonb->>'expenseClassId'))))$rmb$ ); END $do$; 2021-10-01T17:40:19,125 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.budget_expense_class ADD COLUMN IF NOT EXISTS budgetId UUID; 2021-10-01T17:40:19,126 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "budgetid" of relation "budget_expense_class" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,126 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.budget_expense_class ADD COLUMN IF NOT EXISTS budgetId UUID; 2021-10-01T17:40:19,126 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE budget_expense_class ADD CONSTRAINT budgetId_budget_fkey FOREIGN KEY (budgetId) REFERENCES budget; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,127 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE budget_expense_class ADD CONSTRAINT budgetId_budget_fkey FOREIGN KEY (budgetId) REFERENCES budget; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,128 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS budget_expense_class_budgetId_idx ON diku_mod_finance_storage.budget_expense_class (budgetId); 2021-10-01T17:40:19,128 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "budget_expense_class_budgetid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,129 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS budget_expense_class_budgetId_idx ON diku_mod_finance_storage.budget_expense_class (budgetId); 2021-10-01T17:40:19,129 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('budget_expense_class'); 2021-10-01T17:40:19,129 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('budget_expense_class'); 2021-10-01T17:40:19,130 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.budget_expense_class ADD COLUMN IF NOT EXISTS expenseClassId UUID; 2021-10-01T17:40:19,130 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "expenseclassid" of relation "budget_expense_class" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,130 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.budget_expense_class ADD COLUMN IF NOT EXISTS expenseClassId UUID; 2021-10-01T17:40:19,130 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE budget_expense_class ADD CONSTRAINT expenseClassId_expense_class_fkey FOREIGN KEY (expenseClassId) REFERENCES expense_class; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,131 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE budget_expense_class ADD CONSTRAINT expenseClassId_expense_class_fkey FOREIGN KEY (expenseClassId) REFERENCES expense_class; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,131 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS budget_expense_class_expenseClassId_idx ON diku_mod_finance_storage.budget_expense_class (expenseClassId); 2021-10-01T17:40:19,131 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "budget_expense_class_expenseclassid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,132 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS budget_expense_class_expenseClassId_idx ON diku_mod_finance_storage.budget_expense_class (expenseClassId); 2021-10-01T17:40:19,132 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('budget_expense_class'); 2021-10-01T17:40:19,132 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('budget_expense_class'); 2021-10-01T17:40:19,132 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_budget_expense_class_references() RETURNS TRIGGER AS $$ BEGIN NEW.budgetId = (NEW.jsonb->>'budgetId'); NEW.expenseClassId = (NEW.jsonb->>'expenseClassId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,133 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_budget_expense_class_references() RETURNS TRIGGER AS $$ BEGIN NEW.budgetId = (NEW.jsonb->>'budgetId'); NEW.expenseClassId = (NEW.jsonb->>'expenseClassId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,133 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_budget_expense_class_references ON diku_mod_finance_storage.budget_expense_class CASCADE; 2021-10-01T17:40:19,134 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_budget_expense_class_references ON diku_mod_finance_storage.budget_expense_class CASCADE; 2021-10-01T17:40:19,134 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE TRIGGER update_budget_expense_class_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.budget_expense_class FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_budget_expense_class_references(); 2021-10-01T17:40:19,134 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE TRIGGER update_budget_expense_class_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.budget_expense_class FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_budget_expense_class_references(); 2021-10-01T17:40:19,134 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE budget_expense_class DROP CONSTRAINT IF EXISTS ' || 'budgetId_budget_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE budget_expense_class DROP CONSTRAINT IF EXISTS ' || 'expenseClassId_expense_class_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,135 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE budget_expense_class DROP CONSTRAINT IF EXISTS ' || 'budgetId_budget_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE budget_expense_class DROP CONSTRAINT IF EXISTS ' || 'expenseClassId_expense_class_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,135 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_budget_expense_class_ol_version_trigger ON diku_mod_finance_storage.budget_expense_class CASCADE; 2021-10-01T17:40:19,136 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_budget_expense_class_ol_version_trigger" for relation "diku_mod_finance_storage.budget_expense_class" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,136 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_budget_expense_class_ol_version_trigger ON diku_mod_finance_storage.budget_expense_class CASCADE; 2021-10-01T17:40:19,136 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.budget_expense_class_set_ol_version() CASCADE; 2021-10-01T17:40:19,137 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.budget_expense_class_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,137 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.budget_expense_class_set_ol_version() CASCADE; 2021-10-01T17:40:19,137 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_fund_distribution_references ON diku_mod_finance_storage.fund_distribution CASCADE; 2021-10-01T17:40:19,137 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='relation "diku_mod_finance_storage.fund_distribution" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='489', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,137 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_fund_distribution_references ON diku_mod_finance_storage.fund_distribution CASCADE; 2021-10-01T17:40:19,137 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_fund_distribution_references(); 2021-10-01T17:40:19,138 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.update_fund_distribution_references() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,138 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_fund_distribution_references(); 2021-10-01T17:40:19,138 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_fund_distribution_ol_version_trigger ON diku_mod_finance_storage.fund_distribution CASCADE; 2021-10-01T17:40:19,138 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='relation "diku_mod_finance_storage.fund_distribution" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='489', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,138 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_fund_distribution_ol_version_trigger ON diku_mod_finance_storage.fund_distribution CASCADE; 2021-10-01T17:40:19,138 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.fund_distribution_set_ol_version() CASCADE; 2021-10-01T17:40:19,139 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.fund_distribution_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,139 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.fund_distribution_set_ol_version() CASCADE; 2021-10-01T17:40:19,139 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'transaction', 'transaction_encumbrance_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS transaction_encumbrance_idx_unique ON diku_mod_finance_storage.transaction ' || $rmb$(lower(f_unaccent(concat_space_sql(transaction.jsonb->>'amount' , transaction.jsonb->>'fromFundId' , transaction.jsonb->'encumbrance'->>'sourcePurchaseOrderId' , transaction.jsonb->'encumbrance'->>'sourcePoLineId' , transaction.jsonb->'encumbrance'->>'initialAmountEncumbered' , transaction.jsonb->'encumbrance'->>'status' , transaction.jsonb->>'expenseClassId' , transaction.jsonb->>'fiscalYearId'))))$rmb$ || $rmb$ WHERE (jsonb->>'transactionType')::text = 'Encumbrance'$rmb$); END $do$; 2021-10-01T17:40:19,140 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'transaction', 'transaction_encumbrance_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS transaction_encumbrance_idx_unique ON diku_mod_finance_storage.transaction ' || $rmb$(lower(f_unaccent(concat_space_sql(transaction.jsonb->>'amount' , transaction.jsonb->>'fromFundId' , transaction.jsonb->'encumbrance'->>'sourcePurchaseOrderId' , transaction.jsonb->'encumbrance'->>'sourcePoLineId' , transaction.jsonb->'encumbrance'->>'initialAmountEncumbered' , transaction.jsonb->'encumbrance'->>'status' , transaction.jsonb->>'expenseClassId' , transaction.jsonb->>'fiscalYearId'))))$rmb$ || $rmb$ WHERE (jsonb->>'transactionType')::text = 'Encumbrance'$rmb$); END $do$; 2021-10-01T17:40:19,140 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'transaction', 'transaction_payment_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS transaction_payment_idx_unique ON diku_mod_finance_storage.transaction ' || $rmb$(lower(f_unaccent(concat_space_sql(transaction.jsonb->>'amount' , transaction.jsonb->>'fromFundId' , transaction.jsonb->>'sourceInvoiceId' , transaction.jsonb->>'sourceInvoiceLineId' , transaction.jsonb->>'transactionType' , transaction.jsonb->>'expenseClassId'))))$rmb$ || $rmb$ WHERE (jsonb->>'transactionType')::text = 'Payment' OR (jsonb->>'transactionType')::text = 'Pending payment'$rmb$); END $do$; 2021-10-01T17:40:19,140 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'transaction', 'transaction_payment_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS transaction_payment_idx_unique ON diku_mod_finance_storage.transaction ' || $rmb$(lower(f_unaccent(concat_space_sql(transaction.jsonb->>'amount' , transaction.jsonb->>'fromFundId' , transaction.jsonb->>'sourceInvoiceId' , transaction.jsonb->>'sourceInvoiceLineId' , transaction.jsonb->>'transactionType' , transaction.jsonb->>'expenseClassId'))))$rmb$ || $rmb$ WHERE (jsonb->>'transactionType')::text = 'Payment' OR (jsonb->>'transactionType')::text = 'Pending payment'$rmb$); END $do$; 2021-10-01T17:40:19,140 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'transaction', 'transaction_credit_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS transaction_credit_idx_unique ON diku_mod_finance_storage.transaction ' || $rmb$(lower(f_unaccent(concat_space_sql(transaction.jsonb->>'amount' , transaction.jsonb->>'toFundId' , transaction.jsonb->>'sourceInvoiceId' , transaction.jsonb->>'sourceInvoiceLineId' , transaction.jsonb->>'transactionType' , transaction.jsonb->>'expenseClassId'))))$rmb$ || $rmb$ WHERE (jsonb->>'transactionType')::text = 'Credit'$rmb$); END $do$; 2021-10-01T17:40:19,141 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'transaction', 'transaction_credit_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS transaction_credit_idx_unique ON diku_mod_finance_storage.transaction ' || $rmb$(lower(f_unaccent(concat_space_sql(transaction.jsonb->>'amount' , transaction.jsonb->>'toFundId' , transaction.jsonb->>'sourceInvoiceId' , transaction.jsonb->>'sourceInvoiceLineId' , transaction.jsonb->>'transactionType' , transaction.jsonb->>'expenseClassId'))))$rmb$ || $rmb$ WHERE (jsonb->>'transactionType')::text = 'Credit'$rmb$); END $do$; 2021-10-01T17:40:19,141 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'transaction', 'transaction_amount_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS transaction_amount_idx_gin ON diku_mod_finance_storage.transaction USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'amount'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,142 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'transaction', 'transaction_amount_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS transaction_amount_idx_gin ON diku_mod_finance_storage.transaction USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'amount'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,142 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.transaction ADD COLUMN IF NOT EXISTS fiscalYearId UUID; 2021-10-01T17:40:19,142 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "fiscalyearid" of relation "transaction" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,142 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.transaction ADD COLUMN IF NOT EXISTS fiscalYearId UUID; 2021-10-01T17:40:19,142 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE transaction ADD CONSTRAINT fiscalYearId_fiscal_year_fkey FOREIGN KEY (fiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,143 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE transaction ADD CONSTRAINT fiscalYearId_fiscal_year_fkey FOREIGN KEY (fiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,144 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS transaction_fiscalYearId_idx ON diku_mod_finance_storage.transaction (fiscalYearId); 2021-10-01T17:40:19,144 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "transaction_fiscalyearid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,144 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS transaction_fiscalYearId_idx ON diku_mod_finance_storage.transaction (fiscalYearId); 2021-10-01T17:40:19,144 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('transaction'); 2021-10-01T17:40:19,145 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('transaction'); 2021-10-01T17:40:19,145 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.transaction ADD COLUMN IF NOT EXISTS fromFundId UUID; 2021-10-01T17:40:19,145 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "fromfundid" of relation "transaction" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,145 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.transaction ADD COLUMN IF NOT EXISTS fromFundId UUID; 2021-10-01T17:40:19,145 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE transaction ADD CONSTRAINT fromFundId_fund_fkey FOREIGN KEY (fromFundId) REFERENCES fund; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,146 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE transaction ADD CONSTRAINT fromFundId_fund_fkey FOREIGN KEY (fromFundId) REFERENCES fund; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,146 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS transaction_fromFundId_idx ON diku_mod_finance_storage.transaction (fromFundId); 2021-10-01T17:40:19,146 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "transaction_fromfundid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,146 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS transaction_fromFundId_idx ON diku_mod_finance_storage.transaction (fromFundId); 2021-10-01T17:40:19,146 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('transaction'); 2021-10-01T17:40:19,147 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('transaction'); 2021-10-01T17:40:19,147 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.transaction ADD COLUMN IF NOT EXISTS sourceFiscalYearId UUID; 2021-10-01T17:40:19,147 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "sourcefiscalyearid" of relation "transaction" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,147 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.transaction ADD COLUMN IF NOT EXISTS sourceFiscalYearId UUID; 2021-10-01T17:40:19,147 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE transaction ADD CONSTRAINT sourceFiscalYearId_fiscal_year_fkey FOREIGN KEY (sourceFiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,148 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE transaction ADD CONSTRAINT sourceFiscalYearId_fiscal_year_fkey FOREIGN KEY (sourceFiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,148 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS transaction_sourceFiscalYearId_idx ON diku_mod_finance_storage.transaction (sourceFiscalYearId); 2021-10-01T17:40:19,148 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "transaction_sourcefiscalyearid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,148 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS transaction_sourceFiscalYearId_idx ON diku_mod_finance_storage.transaction (sourceFiscalYearId); 2021-10-01T17:40:19,148 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('transaction'); 2021-10-01T17:40:19,149 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('transaction'); 2021-10-01T17:40:19,149 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.transaction ADD COLUMN IF NOT EXISTS toFundId UUID; 2021-10-01T17:40:19,149 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "tofundid" of relation "transaction" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,149 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.transaction ADD COLUMN IF NOT EXISTS toFundId UUID; 2021-10-01T17:40:19,150 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE transaction ADD CONSTRAINT toFundId_fund_fkey FOREIGN KEY (toFundId) REFERENCES fund; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,150 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE transaction ADD CONSTRAINT toFundId_fund_fkey FOREIGN KEY (toFundId) REFERENCES fund; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,150 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS transaction_toFundId_idx ON diku_mod_finance_storage.transaction (toFundId); 2021-10-01T17:40:19,151 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "transaction_tofundid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,151 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS transaction_toFundId_idx ON diku_mod_finance_storage.transaction (toFundId); 2021-10-01T17:40:19,151 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('transaction'); 2021-10-01T17:40:19,152 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('transaction'); 2021-10-01T17:40:19,152 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.transaction ADD COLUMN IF NOT EXISTS expenseClassId UUID; 2021-10-01T17:40:19,152 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "expenseclassid" of relation "transaction" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,152 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.transaction ADD COLUMN IF NOT EXISTS expenseClassId UUID; 2021-10-01T17:40:19,152 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE transaction ADD CONSTRAINT expenseClassId_expense_class_fkey FOREIGN KEY (expenseClassId) REFERENCES expense_class; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,153 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE transaction ADD CONSTRAINT expenseClassId_expense_class_fkey FOREIGN KEY (expenseClassId) REFERENCES expense_class; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,153 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS transaction_expenseClassId_idx ON diku_mod_finance_storage.transaction (expenseClassId); 2021-10-01T17:40:19,153 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "transaction_expenseclassid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,154 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS transaction_expenseClassId_idx ON diku_mod_finance_storage.transaction (expenseClassId); 2021-10-01T17:40:19,154 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('transaction'); 2021-10-01T17:40:19,154 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('transaction'); 2021-10-01T17:40:19,154 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_transaction_references() RETURNS TRIGGER AS $$ BEGIN NEW.fiscalYearId = (NEW.jsonb->>'fiscalYearId'); NEW.fromFundId = (NEW.jsonb->>'fromFundId'); NEW.sourceFiscalYearId = (NEW.jsonb->>'sourceFiscalYearId'); NEW.toFundId = (NEW.jsonb->>'toFundId'); NEW.expenseClassId = (NEW.jsonb->>'expenseClassId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,155 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_transaction_references() RETURNS TRIGGER AS $$ BEGIN NEW.fiscalYearId = (NEW.jsonb->>'fiscalYearId'); NEW.fromFundId = (NEW.jsonb->>'fromFundId'); NEW.sourceFiscalYearId = (NEW.jsonb->>'sourceFiscalYearId'); NEW.toFundId = (NEW.jsonb->>'toFundId'); NEW.expenseClassId = (NEW.jsonb->>'expenseClassId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,155 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_transaction_references ON diku_mod_finance_storage.transaction CASCADE; 2021-10-01T17:40:19,156 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_transaction_references ON diku_mod_finance_storage.transaction CASCADE; 2021-10-01T17:40:19,156 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE TRIGGER update_transaction_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.transaction FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_transaction_references(); 2021-10-01T17:40:19,157 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE TRIGGER update_transaction_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.transaction FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_transaction_references(); 2021-10-01T17:40:19,157 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE transaction DROP CONSTRAINT IF EXISTS ' || 'fiscalYearId_fiscal_year_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE transaction DROP CONSTRAINT IF EXISTS ' || 'fromFundId_fund_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE transaction DROP CONSTRAINT IF EXISTS ' || 'sourceFiscalYearId_fiscal_year_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE transaction DROP CONSTRAINT IF EXISTS ' || 'toFundId_fund_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE transaction DROP CONSTRAINT IF EXISTS ' || 'expenseClassId_expense_class_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,158 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE transaction DROP CONSTRAINT IF EXISTS ' || 'fiscalYearId_fiscal_year_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE transaction DROP CONSTRAINT IF EXISTS ' || 'fromFundId_fund_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE transaction DROP CONSTRAINT IF EXISTS ' || 'sourceFiscalYearId_fiscal_year_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE transaction DROP CONSTRAINT IF EXISTS ' || 'toFundId_fund_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE transaction DROP CONSTRAINT IF EXISTS ' || 'expenseClassId_expense_class_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,158 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_transaction_ol_version_trigger ON diku_mod_finance_storage.transaction CASCADE; 2021-10-01T17:40:19,159 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_transaction_ol_version_trigger" for relation "diku_mod_finance_storage.transaction" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,159 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_transaction_ol_version_trigger ON diku_mod_finance_storage.transaction CASCADE; 2021-10-01T17:40:19,159 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.transaction_set_ol_version() CASCADE; 2021-10-01T17:40:19,159 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.transaction_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,160 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.transaction_set_ol_version() CASCADE; 2021-10-01T17:40:19,160 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'groups', 'groups_code_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS groups_code_idx_unique ON diku_mod_finance_storage.groups ' || $rmb$(lower(f_unaccent(jsonb->>'code')))$rmb$ ); END $do$; 2021-10-01T17:40:19,160 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'groups', 'groups_code_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS groups_code_idx_unique ON diku_mod_finance_storage.groups ' || $rmb$(lower(f_unaccent(jsonb->>'code')))$rmb$ ); END $do$; 2021-10-01T17:40:19,161 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'groups', 'groups_name_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS groups_name_idx_unique ON diku_mod_finance_storage.groups ' || $rmb$(lower(f_unaccent(jsonb->>'name')))$rmb$ ); END $do$; 2021-10-01T17:40:19,161 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'groups', 'groups_name_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS groups_name_idx_unique ON diku_mod_finance_storage.groups ' || $rmb$(lower(f_unaccent(jsonb->>'name')))$rmb$ ); END $do$; 2021-10-01T17:40:19,161 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'groups', 'groups_status_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS groups_status_idx_gin ON diku_mod_finance_storage.groups USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'status'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,162 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'groups', 'groups_status_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS groups_status_idx_gin ON diku_mod_finance_storage.groups USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'status'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,162 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'groups', 'groups_acqUnitIds_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS groups_acqUnitIds_idx_gin ON diku_mod_finance_storage.groups USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'acqUnitIds'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,163 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'groups', 'groups_acqUnitIds_idx_gin', 'ADD', 'CREATE INDEX IF NOT EXISTS groups_acqUnitIds_idx_gin ON diku_mod_finance_storage.groups USING GIN ' || $rmb$((lower(f_unaccent(jsonb->>'acqUnitIds'))) public.gin_trgm_ops)$rmb$ ); END $do$; 2021-10-01T17:40:19,163 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_groups_references ON diku_mod_finance_storage.groups CASCADE; 2021-10-01T17:40:19,164 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "update_groups_references" for relation "diku_mod_finance_storage.groups" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,164 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_groups_references ON diku_mod_finance_storage.groups CASCADE; 2021-10-01T17:40:19,164 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_groups_references(); 2021-10-01T17:40:19,164 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.update_groups_references() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,164 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_groups_references(); 2021-10-01T17:40:19,165 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_groups_ol_version_trigger ON diku_mod_finance_storage.groups CASCADE; 2021-10-01T17:40:19,165 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_groups_ol_version_trigger" for relation "diku_mod_finance_storage.groups" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,166 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_groups_ol_version_trigger ON diku_mod_finance_storage.groups CASCADE; 2021-10-01T17:40:19,166 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.groups_set_ol_version() CASCADE; 2021-10-01T17:40:19,167 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.groups_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,167 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.groups_set_ol_version() CASCADE; 2021-10-01T17:40:19,167 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_ledgerFY_references ON diku_mod_finance_storage.ledgerFY CASCADE; 2021-10-01T17:40:19,168 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='relation "diku_mod_finance_storage.ledgerfy" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='489', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,168 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_ledgerFY_references ON diku_mod_finance_storage.ledgerFY CASCADE; 2021-10-01T17:40:19,168 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_ledgerFY_references(); 2021-10-01T17:40:19,168 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.update_ledgerfy_references() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,168 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_ledgerFY_references(); 2021-10-01T17:40:19,168 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_ledgerFY_ol_version_trigger ON diku_mod_finance_storage.ledgerFY CASCADE; 2021-10-01T17:40:19,169 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='relation "diku_mod_finance_storage.ledgerfy" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='489', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,169 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_ledgerFY_ol_version_trigger ON diku_mod_finance_storage.ledgerFY CASCADE; 2021-10-01T17:40:19,169 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.ledgerFY_set_ol_version() CASCADE; 2021-10-01T17:40:19,169 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.ledgerfy_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,169 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.ledgerFY_set_ol_version() CASCADE; 2021-10-01T17:40:19,169 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'group_fund_fiscal_year', 'group_fund_fiscal_year_groupId_fundId_fiscalYearId_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS group_fund_fiscal_year_groupId_fundId_fiscalYearId_idx_unique ON diku_mod_finance_storage.group_fund_fiscal_year ' || $rmb$(lower(f_unaccent(jsonb->>'groupId')) , lower(f_unaccent(jsonb->>'fundId')) , lower(f_unaccent(jsonb->>'fiscalYearId')))$rmb$ ); END $do$; 2021-10-01T17:40:19,170 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'group_fund_fiscal_year', 'group_fund_fiscal_year_groupId_fundId_fiscalYearId_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS group_fund_fiscal_year_groupId_fundId_fiscalYearId_idx_unique ON diku_mod_finance_storage.group_fund_fiscal_year ' || $rmb$(lower(f_unaccent(jsonb->>'groupId')) , lower(f_unaccent(jsonb->>'fundId')) , lower(f_unaccent(jsonb->>'fiscalYearId')))$rmb$ ); END $do$; 2021-10-01T17:40:19,170 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.group_fund_fiscal_year ADD COLUMN IF NOT EXISTS budgetId UUID; 2021-10-01T17:40:19,171 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "budgetid" of relation "group_fund_fiscal_year" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,171 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.group_fund_fiscal_year ADD COLUMN IF NOT EXISTS budgetId UUID; 2021-10-01T17:40:19,171 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE group_fund_fiscal_year ADD CONSTRAINT budgetId_budget_fkey FOREIGN KEY (budgetId) REFERENCES budget; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,172 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE group_fund_fiscal_year ADD CONSTRAINT budgetId_budget_fkey FOREIGN KEY (budgetId) REFERENCES budget; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,172 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS group_fund_fiscal_year_budgetId_idx ON diku_mod_finance_storage.group_fund_fiscal_year (budgetId); 2021-10-01T17:40:19,172 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "group_fund_fiscal_year_budgetid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,172 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS group_fund_fiscal_year_budgetId_idx ON diku_mod_finance_storage.group_fund_fiscal_year (budgetId); 2021-10-01T17:40:19,172 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('group_fund_fiscal_year'); 2021-10-01T17:40:19,173 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('group_fund_fiscal_year'); 2021-10-01T17:40:19,173 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.group_fund_fiscal_year ADD COLUMN IF NOT EXISTS groupId UUID; 2021-10-01T17:40:19,173 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "groupid" of relation "group_fund_fiscal_year" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,173 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.group_fund_fiscal_year ADD COLUMN IF NOT EXISTS groupId UUID; 2021-10-01T17:40:19,173 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE group_fund_fiscal_year ADD CONSTRAINT groupId_groups_fkey FOREIGN KEY (groupId) REFERENCES groups; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,174 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE group_fund_fiscal_year ADD CONSTRAINT groupId_groups_fkey FOREIGN KEY (groupId) REFERENCES groups; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,174 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS group_fund_fiscal_year_groupId_idx ON diku_mod_finance_storage.group_fund_fiscal_year (groupId); 2021-10-01T17:40:19,174 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "group_fund_fiscal_year_groupid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,174 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS group_fund_fiscal_year_groupId_idx ON diku_mod_finance_storage.group_fund_fiscal_year (groupId); 2021-10-01T17:40:19,175 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('group_fund_fiscal_year'); 2021-10-01T17:40:19,175 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('group_fund_fiscal_year'); 2021-10-01T17:40:19,175 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.group_fund_fiscal_year ADD COLUMN IF NOT EXISTS fundId UUID; 2021-10-01T17:40:19,175 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "fundid" of relation "group_fund_fiscal_year" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,176 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.group_fund_fiscal_year ADD COLUMN IF NOT EXISTS fundId UUID; 2021-10-01T17:40:19,176 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE group_fund_fiscal_year ADD CONSTRAINT fundId_fund_fkey FOREIGN KEY (fundId) REFERENCES fund; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,176 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE group_fund_fiscal_year ADD CONSTRAINT fundId_fund_fkey FOREIGN KEY (fundId) REFERENCES fund; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,176 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS group_fund_fiscal_year_fundId_idx ON diku_mod_finance_storage.group_fund_fiscal_year (fundId); 2021-10-01T17:40:19,177 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "group_fund_fiscal_year_fundid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,177 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS group_fund_fiscal_year_fundId_idx ON diku_mod_finance_storage.group_fund_fiscal_year (fundId); 2021-10-01T17:40:19,177 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('group_fund_fiscal_year'); 2021-10-01T17:40:19,177 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('group_fund_fiscal_year'); 2021-10-01T17:40:19,177 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.group_fund_fiscal_year ADD COLUMN IF NOT EXISTS fiscalYearId UUID; 2021-10-01T17:40:19,178 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "fiscalyearid" of relation "group_fund_fiscal_year" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,178 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.group_fund_fiscal_year ADD COLUMN IF NOT EXISTS fiscalYearId UUID; 2021-10-01T17:40:19,178 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE group_fund_fiscal_year ADD CONSTRAINT fiscalYearId_fiscal_year_fkey FOREIGN KEY (fiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,178 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE group_fund_fiscal_year ADD CONSTRAINT fiscalYearId_fiscal_year_fkey FOREIGN KEY (fiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,178 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS group_fund_fiscal_year_fiscalYearId_idx ON diku_mod_finance_storage.group_fund_fiscal_year (fiscalYearId); 2021-10-01T17:40:19,179 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "group_fund_fiscal_year_fiscalyearid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,179 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS group_fund_fiscal_year_fiscalYearId_idx ON diku_mod_finance_storage.group_fund_fiscal_year (fiscalYearId); 2021-10-01T17:40:19,179 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('group_fund_fiscal_year'); 2021-10-01T17:40:19,179 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('group_fund_fiscal_year'); 2021-10-01T17:40:19,179 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_group_fund_fiscal_year_references() RETURNS TRIGGER AS $$ BEGIN NEW.budgetId = (NEW.jsonb->>'budgetId'); NEW.groupId = (NEW.jsonb->>'groupId'); NEW.fundId = (NEW.jsonb->>'fundId'); NEW.fiscalYearId = (NEW.jsonb->>'fiscalYearId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,180 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_group_fund_fiscal_year_references() RETURNS TRIGGER AS $$ BEGIN NEW.budgetId = (NEW.jsonb->>'budgetId'); NEW.groupId = (NEW.jsonb->>'groupId'); NEW.fundId = (NEW.jsonb->>'fundId'); NEW.fiscalYearId = (NEW.jsonb->>'fiscalYearId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,180 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_group_fund_fiscal_year_references ON diku_mod_finance_storage.group_fund_fiscal_year CASCADE; 2021-10-01T17:40:19,181 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_group_fund_fiscal_year_references ON diku_mod_finance_storage.group_fund_fiscal_year CASCADE; 2021-10-01T17:40:19,181 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE TRIGGER update_group_fund_fiscal_year_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.group_fund_fiscal_year FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_group_fund_fiscal_year_references(); 2021-10-01T17:40:19,182 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE TRIGGER update_group_fund_fiscal_year_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.group_fund_fiscal_year FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_group_fund_fiscal_year_references(); 2021-10-01T17:40:19,182 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE group_fund_fiscal_year DROP CONSTRAINT IF EXISTS ' || 'budgetId_budget_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE group_fund_fiscal_year DROP CONSTRAINT IF EXISTS ' || 'groupId_groups_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE group_fund_fiscal_year DROP CONSTRAINT IF EXISTS ' || 'fundId_fund_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE group_fund_fiscal_year DROP CONSTRAINT IF EXISTS ' || 'fiscalYearId_fiscal_year_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,182 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE group_fund_fiscal_year DROP CONSTRAINT IF EXISTS ' || 'budgetId_budget_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE group_fund_fiscal_year DROP CONSTRAINT IF EXISTS ' || 'groupId_groups_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE group_fund_fiscal_year DROP CONSTRAINT IF EXISTS ' || 'fundId_fund_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE group_fund_fiscal_year DROP CONSTRAINT IF EXISTS ' || 'fiscalYearId_fiscal_year_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,182 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_group_fund_fiscal_year_ol_version_trigger ON diku_mod_finance_storage.group_fund_fiscal_year CASCADE; 2021-10-01T17:40:19,183 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_group_fund_fiscal_year_ol_version_trigger" for relation "diku_mod_finance_storage.group_fund_fiscal_year" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,183 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_group_fund_fiscal_year_ol_version_trigger ON diku_mod_finance_storage.group_fund_fiscal_year CASCADE; 2021-10-01T17:40:19,183 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.group_fund_fiscal_year_set_ol_version() CASCADE; 2021-10-01T17:40:19,184 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.group_fund_fiscal_year_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,184 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.group_fund_fiscal_year_set_ol_version() CASCADE; 2021-10-01T17:40:19,184 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_order_transaction_summaries_references ON diku_mod_finance_storage.order_transaction_summaries CASCADE; 2021-10-01T17:40:19,184 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "update_order_transaction_summaries_references" for relation "diku_mod_finance_storage.order_transaction_summaries" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,184 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_order_transaction_summaries_references ON diku_mod_finance_storage.order_transaction_summaries CASCADE; 2021-10-01T17:40:19,184 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_order_transaction_summaries_references(); 2021-10-01T17:40:19,185 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.update_order_transaction_summaries_references() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,185 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_order_transaction_summaries_references(); 2021-10-01T17:40:19,185 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_order_transaction_summaries_ol_version_trigger ON diku_mod_finance_storage.order_transaction_summaries CASCADE; 2021-10-01T17:40:19,185 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_order_transaction_summaries_ol_version_trigger" for relation "diku_mod_finance_storage.order_transaction_summaries" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,185 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_order_transaction_summaries_ol_version_trigger ON diku_mod_finance_storage.order_transaction_summaries CASCADE; 2021-10-01T17:40:19,185 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.order_transaction_summaries_set_ol_version() CASCADE; 2021-10-01T17:40:19,186 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.order_transaction_summaries_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,186 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.order_transaction_summaries_set_ol_version() CASCADE; 2021-10-01T17:40:19,186 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'temporary_order_transactions', 'temporary_order_transactions_temp_order_tx_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS temporary_order_transactions_temp_order_tx_idx_unique ON diku_mod_finance_storage.temporary_order_transactions ' || $rmb$(lower(f_unaccent(concat_space_sql(temporary_order_transactions.jsonb->>'amount' , temporary_order_transactions.jsonb->>'fromFundId' , temporary_order_transactions.jsonb->'encumbrance'->>'sourcePurchaseOrderId' , temporary_order_transactions.jsonb->'encumbrance'->>'sourcePoLineId' , temporary_order_transactions.jsonb->'encumbrance'->>'initialAmountEncumbered' , temporary_order_transactions.jsonb->'encumbrance'->>'status' , temporary_order_transactions.jsonb->>'expenseClassId'))))$rmb$ ); END $do$; 2021-10-01T17:40:19,187 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'temporary_order_transactions', 'temporary_order_transactions_temp_order_tx_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS temporary_order_transactions_temp_order_tx_idx_unique ON diku_mod_finance_storage.temporary_order_transactions ' || $rmb$(lower(f_unaccent(concat_space_sql(temporary_order_transactions.jsonb->>'amount' , temporary_order_transactions.jsonb->>'fromFundId' , temporary_order_transactions.jsonb->'encumbrance'->>'sourcePurchaseOrderId' , temporary_order_transactions.jsonb->'encumbrance'->>'sourcePoLineId' , temporary_order_transactions.jsonb->'encumbrance'->>'initialAmountEncumbered' , temporary_order_transactions.jsonb->'encumbrance'->>'status' , temporary_order_transactions.jsonb->>'expenseClassId'))))$rmb$ ); END $do$; 2021-10-01T17:40:19,187 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.temporary_order_transactions ADD COLUMN IF NOT EXISTS encumbrance_sourcePurchaseOrderId UUID; 2021-10-01T17:40:19,188 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "encumbrance_sourcepurchaseorderid" of relation "temporary_order_transactions" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,188 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.temporary_order_transactions ADD COLUMN IF NOT EXISTS encumbrance_sourcePurchaseOrderId UUID; 2021-10-01T17:40:19,188 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE temporary_order_transactions ADD CONSTRAINT encumbrance_sourcePurchaseOrderId_order_transaction_summaries_fkey FOREIGN KEY (encumbrance_sourcePurchaseOrderId) REFERENCES order_transaction_summaries; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,188 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42622', message='identifier "encumbrance_sourcepurchaseorderid_order_transaction_summaries_fkey" will be truncated to "encumbrance_sourcepurchaseorderid_order_transaction_summaries_f"', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='compilation of PL/pgSQL function "inline_code_block" near line 1', file='scansup.c', line='202', routine='truncate_identifier', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,188 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42622', message='identifier "encumbrance_sourcepurchaseorderid_order_transaction_summaries_fkey" will be truncated to "encumbrance_sourcepurchaseorderid_order_transaction_summaries_f"', detail='null', hint='null', position='58', internalPosition='null', internalQuery='null', where='null', file='scansup.c', line='202', routine='truncate_identifier', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,189 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42622', message='identifier "encumbrance_sourcepurchaseorderid_order_transaction_summaries_fkey" will be truncated to "encumbrance_sourcepurchaseorderid_order_transaction_summaries_f"', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='SQL statement "ALTER TABLE temporary_order_transactions ADD CONSTRAINT encumbrance_sourcePurchaseOrderId_order_transaction_summaries_fkey FOREIGN KEY (encumbrance_sourcePurchaseOrderId) REFERENCES order_transaction_summaries" PL/pgSQL function inline_code_block line 4 at SQL statement', file='scansup.c', line='202', routine='truncate_identifier', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,189 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE temporary_order_transactions ADD CONSTRAINT encumbrance_sourcePurchaseOrderId_order_transaction_summaries_fkey FOREIGN KEY (encumbrance_sourcePurchaseOrderId) REFERENCES order_transaction_summaries; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,189 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS temporary_order_transactions_encumbrance_sourcePurchaseOrderId_idx ON diku_mod_finance_storage.temporary_order_transactions (encumbrance_sourcePurchaseOrderId); 2021-10-01T17:40:19,189 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42622', message='identifier "temporary_order_transactions_encumbrance_sourcepurchaseorderid_idx" will be truncated to "temporary_order_transactions_encumbrance_sourcepurchaseorderid_"', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='scansup.c', line='202', routine='truncate_identifier', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,189 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "temporary_order_transactions_encumbrance_sourcepurchaseorderid_" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,189 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS temporary_order_transactions_encumbrance_sourcePurchaseOrderId_idx ON diku_mod_finance_storage.temporary_order_transactions (encumbrance_sourcePurchaseOrderId); 2021-10-01T17:40:19,189 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('temporary_order_transactions'); 2021-10-01T17:40:19,190 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('temporary_order_transactions'); 2021-10-01T17:40:19,190 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.temporary_order_transactions ADD COLUMN IF NOT EXISTS fiscalYearId UUID; 2021-10-01T17:40:19,190 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "fiscalyearid" of relation "temporary_order_transactions" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,190 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.temporary_order_transactions ADD COLUMN IF NOT EXISTS fiscalYearId UUID; 2021-10-01T17:40:19,190 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE temporary_order_transactions ADD CONSTRAINT fiscalYearId_fiscal_year_fkey FOREIGN KEY (fiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,191 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE temporary_order_transactions ADD CONSTRAINT fiscalYearId_fiscal_year_fkey FOREIGN KEY (fiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,191 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS temporary_order_transactions_fiscalYearId_idx ON diku_mod_finance_storage.temporary_order_transactions (fiscalYearId); 2021-10-01T17:40:19,191 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "temporary_order_transactions_fiscalyearid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,191 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS temporary_order_transactions_fiscalYearId_idx ON diku_mod_finance_storage.temporary_order_transactions (fiscalYearId); 2021-10-01T17:40:19,191 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('temporary_order_transactions'); 2021-10-01T17:40:19,192 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('temporary_order_transactions'); 2021-10-01T17:40:19,192 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.temporary_order_transactions ADD COLUMN IF NOT EXISTS fromFundId UUID; 2021-10-01T17:40:19,193 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "fromfundid" of relation "temporary_order_transactions" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,193 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.temporary_order_transactions ADD COLUMN IF NOT EXISTS fromFundId UUID; 2021-10-01T17:40:19,193 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE temporary_order_transactions ADD CONSTRAINT fromFundId_fund_fkey FOREIGN KEY (fromFundId) REFERENCES fund; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,194 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE temporary_order_transactions ADD CONSTRAINT fromFundId_fund_fkey FOREIGN KEY (fromFundId) REFERENCES fund; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,194 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS temporary_order_transactions_fromFundId_idx ON diku_mod_finance_storage.temporary_order_transactions (fromFundId); 2021-10-01T17:40:19,194 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "temporary_order_transactions_fromfundid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,194 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS temporary_order_transactions_fromFundId_idx ON diku_mod_finance_storage.temporary_order_transactions (fromFundId); 2021-10-01T17:40:19,194 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('temporary_order_transactions'); 2021-10-01T17:40:19,195 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('temporary_order_transactions'); 2021-10-01T17:40:19,195 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.temporary_order_transactions ADD COLUMN IF NOT EXISTS expenseClassId UUID; 2021-10-01T17:40:19,195 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "expenseclassid" of relation "temporary_order_transactions" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,196 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.temporary_order_transactions ADD COLUMN IF NOT EXISTS expenseClassId UUID; 2021-10-01T17:40:19,196 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE temporary_order_transactions ADD CONSTRAINT expenseClassId_expense_class_fkey FOREIGN KEY (expenseClassId) REFERENCES expense_class; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,196 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE temporary_order_transactions ADD CONSTRAINT expenseClassId_expense_class_fkey FOREIGN KEY (expenseClassId) REFERENCES expense_class; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,196 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS temporary_order_transactions_expenseClassId_idx ON diku_mod_finance_storage.temporary_order_transactions (expenseClassId); 2021-10-01T17:40:19,197 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "temporary_order_transactions_expenseclassid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,197 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS temporary_order_transactions_expenseClassId_idx ON diku_mod_finance_storage.temporary_order_transactions (expenseClassId); 2021-10-01T17:40:19,197 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('temporary_order_transactions'); 2021-10-01T17:40:19,197 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('temporary_order_transactions'); 2021-10-01T17:40:19,197 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_temporary_order_transactions_references() RETURNS TRIGGER AS $$ BEGIN NEW.encumbrance_sourcePurchaseOrderId = (NEW.jsonb->'encumbrance'->>'sourcePurchaseOrderId'); NEW.fiscalYearId = (NEW.jsonb->>'fiscalYearId'); NEW.fromFundId = (NEW.jsonb->>'fromFundId'); NEW.expenseClassId = (NEW.jsonb->>'expenseClassId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,198 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_temporary_order_transactions_references() RETURNS TRIGGER AS $$ BEGIN NEW.encumbrance_sourcePurchaseOrderId = (NEW.jsonb->'encumbrance'->>'sourcePurchaseOrderId'); NEW.fiscalYearId = (NEW.jsonb->>'fiscalYearId'); NEW.fromFundId = (NEW.jsonb->>'fromFundId'); NEW.expenseClassId = (NEW.jsonb->>'expenseClassId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,198 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_temporary_order_transactions_references ON diku_mod_finance_storage.temporary_order_transactions CASCADE; 2021-10-01T17:40:19,198 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_temporary_order_transactions_references ON diku_mod_finance_storage.temporary_order_transactions CASCADE; 2021-10-01T17:40:19,198 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE TRIGGER update_temporary_order_transactions_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.temporary_order_transactions FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_temporary_order_transactions_references(); 2021-10-01T17:40:19,199 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE TRIGGER update_temporary_order_transactions_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.temporary_order_transactions FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_temporary_order_transactions_references(); 2021-10-01T17:40:19,199 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_order_transactions DROP CONSTRAINT IF EXISTS ' || 'encumbrance_sourcePurchaseOrderId_order_transaction_summaries_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_order_transactions DROP CONSTRAINT IF EXISTS ' || 'fiscalYearId_fiscal_year_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_order_transactions DROP CONSTRAINT IF EXISTS ' || 'fromFundId_fund_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_order_transactions DROP CONSTRAINT IF EXISTS ' || 'expenseClassId_expense_class_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,199 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_order_transactions DROP CONSTRAINT IF EXISTS ' || 'encumbrance_sourcePurchaseOrderId_order_transaction_summaries_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_order_transactions DROP CONSTRAINT IF EXISTS ' || 'fiscalYearId_fiscal_year_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_order_transactions DROP CONSTRAINT IF EXISTS ' || 'fromFundId_fund_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_order_transactions DROP CONSTRAINT IF EXISTS ' || 'expenseClassId_expense_class_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,199 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_temporary_order_transactions_ol_version_trigger ON diku_mod_finance_storage.temporary_order_transactions CASCADE; 2021-10-01T17:40:19,200 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_temporary_order_transactions_ol_version_trigger" for relation "diku_mod_finance_storage.temporary_order_transactions" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,200 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_temporary_order_transactions_ol_version_trigger ON diku_mod_finance_storage.temporary_order_transactions CASCADE; 2021-10-01T17:40:19,200 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.temporary_order_transactions_set_ol_version() CASCADE; 2021-10-01T17:40:19,201 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.temporary_order_transactions_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,201 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.temporary_order_transactions_set_ol_version() CASCADE; 2021-10-01T17:40:19,201 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_invoice_transaction_summaries_references ON diku_mod_finance_storage.invoice_transaction_summaries CASCADE; 2021-10-01T17:40:19,201 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "update_invoice_transaction_summaries_references" for relation "diku_mod_finance_storage.invoice_transaction_summaries" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,201 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_invoice_transaction_summaries_references ON diku_mod_finance_storage.invoice_transaction_summaries CASCADE; 2021-10-01T17:40:19,201 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_invoice_transaction_summaries_references(); 2021-10-01T17:40:19,202 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.update_invoice_transaction_summaries_references() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,202 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_invoice_transaction_summaries_references(); 2021-10-01T17:40:19,202 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_invoice_transaction_summaries_ol_version_trigger ON diku_mod_finance_storage.invoice_transaction_summaries CASCADE; 2021-10-01T17:40:19,202 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_invoice_transaction_summaries_ol_version_trigger" for relation "diku_mod_finance_storage.invoice_transaction_summaries" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,202 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_invoice_transaction_summaries_ol_version_trigger ON diku_mod_finance_storage.invoice_transaction_summaries CASCADE; 2021-10-01T17:40:19,202 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.invoice_transaction_summaries_set_ol_version() CASCADE; 2021-10-01T17:40:19,202 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.invoice_transaction_summaries_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,202 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.invoice_transaction_summaries_set_ol_version() CASCADE; 2021-10-01T17:40:19,203 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'temporary_invoice_transactions', 'temporary_invoice_transactions_temp_invoice_tx_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS temporary_invoice_transactions_temp_invoice_tx_idx_unique ON diku_mod_finance_storage.temporary_invoice_transactions ' || $rmb$(concat_space_sql(lower(f_unaccent(jsonb->>'amount')) , lower(f_unaccent(jsonb->>'fromFundId')) , lower(f_unaccent(jsonb->>'sourceInvoiceId')) , lower(f_unaccent(jsonb->>'sourceInvoiceLineId')) , lower(f_unaccent(jsonb->>'toFundId')) , lower(f_unaccent(jsonb->>'transactionType')), lower(f_unaccent(jsonb->>'expenseClassId'))))$rmb$ ); END $do$; 2021-10-01T17:40:19,203 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'temporary_invoice_transactions', 'temporary_invoice_transactions_temp_invoice_tx_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS temporary_invoice_transactions_temp_invoice_tx_idx_unique ON diku_mod_finance_storage.temporary_invoice_transactions ' || $rmb$(concat_space_sql(lower(f_unaccent(jsonb->>'amount')) , lower(f_unaccent(jsonb->>'fromFundId')) , lower(f_unaccent(jsonb->>'sourceInvoiceId')) , lower(f_unaccent(jsonb->>'sourceInvoiceLineId')) , lower(f_unaccent(jsonb->>'toFundId')) , lower(f_unaccent(jsonb->>'transactionType')), lower(f_unaccent(jsonb->>'expenseClassId'))))$rmb$ ); END $do$; 2021-10-01T17:40:19,203 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.temporary_invoice_transactions ADD COLUMN IF NOT EXISTS sourceInvoiceId UUID; 2021-10-01T17:40:19,204 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "sourceinvoiceid" of relation "temporary_invoice_transactions" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,204 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.temporary_invoice_transactions ADD COLUMN IF NOT EXISTS sourceInvoiceId UUID; 2021-10-01T17:40:19,204 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE temporary_invoice_transactions ADD CONSTRAINT sourceInvoiceId_invoice_transaction_summaries_fkey FOREIGN KEY (sourceInvoiceId) REFERENCES invoice_transaction_summaries; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,205 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE temporary_invoice_transactions ADD CONSTRAINT sourceInvoiceId_invoice_transaction_summaries_fkey FOREIGN KEY (sourceInvoiceId) REFERENCES invoice_transaction_summaries; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,205 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS temporary_invoice_transactions_sourceInvoiceId_idx ON diku_mod_finance_storage.temporary_invoice_transactions (sourceInvoiceId); 2021-10-01T17:40:19,205 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "temporary_invoice_transactions_sourceinvoiceid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,205 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS temporary_invoice_transactions_sourceInvoiceId_idx ON diku_mod_finance_storage.temporary_invoice_transactions (sourceInvoiceId); 2021-10-01T17:40:19,205 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('temporary_invoice_transactions'); 2021-10-01T17:40:19,206 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('temporary_invoice_transactions'); 2021-10-01T17:40:19,206 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.temporary_invoice_transactions ADD COLUMN IF NOT EXISTS paymentEncumbranceId UUID; 2021-10-01T17:40:19,206 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "paymentencumbranceid" of relation "temporary_invoice_transactions" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,206 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.temporary_invoice_transactions ADD COLUMN IF NOT EXISTS paymentEncumbranceId UUID; 2021-10-01T17:40:19,206 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE temporary_invoice_transactions ADD CONSTRAINT paymentEncumbranceId_transaction_fkey FOREIGN KEY (paymentEncumbranceId) REFERENCES transaction; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,207 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE temporary_invoice_transactions ADD CONSTRAINT paymentEncumbranceId_transaction_fkey FOREIGN KEY (paymentEncumbranceId) REFERENCES transaction; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,207 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS temporary_invoice_transactions_paymentEncumbranceId_idx ON diku_mod_finance_storage.temporary_invoice_transactions (paymentEncumbranceId); 2021-10-01T17:40:19,207 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "temporary_invoice_transactions_paymentencumbranceid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,207 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS temporary_invoice_transactions_paymentEncumbranceId_idx ON diku_mod_finance_storage.temporary_invoice_transactions (paymentEncumbranceId); 2021-10-01T17:40:19,207 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('temporary_invoice_transactions'); 2021-10-01T17:40:19,208 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('temporary_invoice_transactions'); 2021-10-01T17:40:19,208 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.temporary_invoice_transactions ADD COLUMN IF NOT EXISTS fromFundId UUID; 2021-10-01T17:40:19,208 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "fromfundid" of relation "temporary_invoice_transactions" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,208 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.temporary_invoice_transactions ADD COLUMN IF NOT EXISTS fromFundId UUID; 2021-10-01T17:40:19,208 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE temporary_invoice_transactions ADD CONSTRAINT fromFundId_fund_fkey FOREIGN KEY (fromFundId) REFERENCES fund; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,209 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE temporary_invoice_transactions ADD CONSTRAINT fromFundId_fund_fkey FOREIGN KEY (fromFundId) REFERENCES fund; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,209 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS temporary_invoice_transactions_fromFundId_idx ON diku_mod_finance_storage.temporary_invoice_transactions (fromFundId); 2021-10-01T17:40:19,210 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "temporary_invoice_transactions_fromfundid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,210 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS temporary_invoice_transactions_fromFundId_idx ON diku_mod_finance_storage.temporary_invoice_transactions (fromFundId); 2021-10-01T17:40:19,210 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('temporary_invoice_transactions'); 2021-10-01T17:40:19,210 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('temporary_invoice_transactions'); 2021-10-01T17:40:19,210 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.temporary_invoice_transactions ADD COLUMN IF NOT EXISTS toFundId UUID; 2021-10-01T17:40:19,211 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "tofundid" of relation "temporary_invoice_transactions" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,211 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.temporary_invoice_transactions ADD COLUMN IF NOT EXISTS toFundId UUID; 2021-10-01T17:40:19,211 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE temporary_invoice_transactions ADD CONSTRAINT toFundId_fund_fkey FOREIGN KEY (toFundId) REFERENCES fund; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,212 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE temporary_invoice_transactions ADD CONSTRAINT toFundId_fund_fkey FOREIGN KEY (toFundId) REFERENCES fund; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,212 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS temporary_invoice_transactions_toFundId_idx ON diku_mod_finance_storage.temporary_invoice_transactions (toFundId); 2021-10-01T17:40:19,213 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "temporary_invoice_transactions_tofundid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,213 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS temporary_invoice_transactions_toFundId_idx ON diku_mod_finance_storage.temporary_invoice_transactions (toFundId); 2021-10-01T17:40:19,213 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('temporary_invoice_transactions'); 2021-10-01T17:40:19,214 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('temporary_invoice_transactions'); 2021-10-01T17:40:19,214 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.temporary_invoice_transactions ADD COLUMN IF NOT EXISTS fiscalYearId UUID; 2021-10-01T17:40:19,214 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "fiscalyearid" of relation "temporary_invoice_transactions" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,214 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.temporary_invoice_transactions ADD COLUMN IF NOT EXISTS fiscalYearId UUID; 2021-10-01T17:40:19,214 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE temporary_invoice_transactions ADD CONSTRAINT fiscalYearId_fiscal_year_fkey FOREIGN KEY (fiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,215 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE temporary_invoice_transactions ADD CONSTRAINT fiscalYearId_fiscal_year_fkey FOREIGN KEY (fiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,215 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS temporary_invoice_transactions_fiscalYearId_idx ON diku_mod_finance_storage.temporary_invoice_transactions (fiscalYearId); 2021-10-01T17:40:19,215 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "temporary_invoice_transactions_fiscalyearid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,216 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS temporary_invoice_transactions_fiscalYearId_idx ON diku_mod_finance_storage.temporary_invoice_transactions (fiscalYearId); 2021-10-01T17:40:19,216 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('temporary_invoice_transactions'); 2021-10-01T17:40:19,216 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('temporary_invoice_transactions'); 2021-10-01T17:40:19,216 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.temporary_invoice_transactions ADD COLUMN IF NOT EXISTS expenseClassId UUID; 2021-10-01T17:40:19,217 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "expenseclassid" of relation "temporary_invoice_transactions" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,217 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.temporary_invoice_transactions ADD COLUMN IF NOT EXISTS expenseClassId UUID; 2021-10-01T17:40:19,217 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE temporary_invoice_transactions ADD CONSTRAINT expenseClassId_expense_class_fkey FOREIGN KEY (expenseClassId) REFERENCES expense_class; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,217 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE temporary_invoice_transactions ADD CONSTRAINT expenseClassId_expense_class_fkey FOREIGN KEY (expenseClassId) REFERENCES expense_class; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,218 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS temporary_invoice_transactions_expenseClassId_idx ON diku_mod_finance_storage.temporary_invoice_transactions (expenseClassId); 2021-10-01T17:40:19,218 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "temporary_invoice_transactions_expenseclassid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,218 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS temporary_invoice_transactions_expenseClassId_idx ON diku_mod_finance_storage.temporary_invoice_transactions (expenseClassId); 2021-10-01T17:40:19,218 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('temporary_invoice_transactions'); 2021-10-01T17:40:19,219 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('temporary_invoice_transactions'); 2021-10-01T17:40:19,219 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_temporary_invoice_transactions_references() RETURNS TRIGGER AS $$ BEGIN NEW.sourceInvoiceId = (NEW.jsonb->>'sourceInvoiceId'); NEW.paymentEncumbranceId = (NEW.jsonb->>'paymentEncumbranceId'); NEW.fromFundId = (NEW.jsonb->>'fromFundId'); NEW.toFundId = (NEW.jsonb->>'toFundId'); NEW.fiscalYearId = (NEW.jsonb->>'fiscalYearId'); NEW.expenseClassId = (NEW.jsonb->>'expenseClassId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,219 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_temporary_invoice_transactions_references() RETURNS TRIGGER AS $$ BEGIN NEW.sourceInvoiceId = (NEW.jsonb->>'sourceInvoiceId'); NEW.paymentEncumbranceId = (NEW.jsonb->>'paymentEncumbranceId'); NEW.fromFundId = (NEW.jsonb->>'fromFundId'); NEW.toFundId = (NEW.jsonb->>'toFundId'); NEW.fiscalYearId = (NEW.jsonb->>'fiscalYearId'); NEW.expenseClassId = (NEW.jsonb->>'expenseClassId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,219 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_temporary_invoice_transactions_references ON diku_mod_finance_storage.temporary_invoice_transactions CASCADE; 2021-10-01T17:40:19,220 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_temporary_invoice_transactions_references ON diku_mod_finance_storage.temporary_invoice_transactions CASCADE; 2021-10-01T17:40:19,220 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE TRIGGER update_temporary_invoice_transactions_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.temporary_invoice_transactions FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_temporary_invoice_transactions_references(); 2021-10-01T17:40:19,221 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE TRIGGER update_temporary_invoice_transactions_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.temporary_invoice_transactions FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_temporary_invoice_transactions_references(); 2021-10-01T17:40:19,221 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_invoice_transactions DROP CONSTRAINT IF EXISTS ' || 'sourceInvoiceId_invoice_transaction_summaries_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_invoice_transactions DROP CONSTRAINT IF EXISTS ' || 'paymentEncumbranceId_transaction_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_invoice_transactions DROP CONSTRAINT IF EXISTS ' || 'fromFundId_fund_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_invoice_transactions DROP CONSTRAINT IF EXISTS ' || 'toFundId_fund_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_invoice_transactions DROP CONSTRAINT IF EXISTS ' || 'fiscalYearId_fiscal_year_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_invoice_transactions DROP CONSTRAINT IF EXISTS ' || 'expenseClassId_expense_class_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,222 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_invoice_transactions DROP CONSTRAINT IF EXISTS ' || 'sourceInvoiceId_invoice_transaction_summaries_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_invoice_transactions DROP CONSTRAINT IF EXISTS ' || 'paymentEncumbranceId_transaction_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_invoice_transactions DROP CONSTRAINT IF EXISTS ' || 'fromFundId_fund_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_invoice_transactions DROP CONSTRAINT IF EXISTS ' || 'toFundId_fund_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_invoice_transactions DROP CONSTRAINT IF EXISTS ' || 'fiscalYearId_fiscal_year_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE temporary_invoice_transactions DROP CONSTRAINT IF EXISTS ' || 'expenseClassId_expense_class_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,222 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_temporary_invoice_transactions_ol_version_trigger ON diku_mod_finance_storage.temporary_invoice_transactions CASCADE; 2021-10-01T17:40:19,225 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_temporary_invoice_transactions_ol_version_trigger" for relation "diku_mod_finance_storage.temporary_invoice_transactions" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,225 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_temporary_invoice_transactions_ol_version_trigger ON diku_mod_finance_storage.temporary_invoice_transactions CASCADE; 2021-10-01T17:40:19,225 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.temporary_invoice_transactions_set_ol_version() CASCADE; 2021-10-01T17:40:19,226 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.temporary_invoice_transactions_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,226 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.temporary_invoice_transactions_set_ol_version() CASCADE; 2021-10-01T17:40:19,226 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_temporary_invoice_payments_references ON diku_mod_finance_storage.temporary_invoice_payments CASCADE; 2021-10-01T17:40:19,230 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='relation "diku_mod_finance_storage.temporary_invoice_payments" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='489', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,230 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_temporary_invoice_payments_references ON diku_mod_finance_storage.temporary_invoice_payments CASCADE; 2021-10-01T17:40:19,230 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_temporary_invoice_payments_references(); 2021-10-01T17:40:19,231 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.update_temporary_invoice_payments_references() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,237 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.update_temporary_invoice_payments_references(); 2021-10-01T17:40:19,237 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_temporary_invoice_payments_ol_version_trigger ON diku_mod_finance_storage.temporary_invoice_payments CASCADE; 2021-10-01T17:40:19,238 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='relation "diku_mod_finance_storage.temporary_invoice_payments" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='489', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,238 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_temporary_invoice_payments_ol_version_trigger ON diku_mod_finance_storage.temporary_invoice_payments CASCADE; 2021-10-01T17:40:19,238 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.temporary_invoice_payments_set_ol_version() CASCADE; 2021-10-01T17:40:19,239 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.temporary_invoice_payments_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,239 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.temporary_invoice_payments_set_ol_version() CASCADE; 2021-10-01T17:40:19,239 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger_fiscal_year_rollover', 'ledger_fiscal_year_rollover_ledgerId_fromFiscalYearId_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_ledgerId_fromFiscalYearId_idx_unique ON diku_mod_finance_storage.ledger_fiscal_year_rollover ' || $rmb$(lower(f_unaccent(concat_space_sql(ledger_fiscal_year_rollover.jsonb->>'ledgerId' , ledger_fiscal_year_rollover.jsonb->>'fromFiscalYearId'))))$rmb$ ); END $do$; 2021-10-01T17:40:19,242 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger_fiscal_year_rollover', 'ledger_fiscal_year_rollover_ledgerId_fromFiscalYearId_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_ledgerId_fromFiscalYearId_idx_unique ON diku_mod_finance_storage.ledger_fiscal_year_rollover ' || $rmb$(lower(f_unaccent(concat_space_sql(ledger_fiscal_year_rollover.jsonb->>'ledgerId' , ledger_fiscal_year_rollover.jsonb->>'fromFiscalYearId'))))$rmb$ ); END $do$; 2021-10-01T17:40:19,242 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.ledger_fiscal_year_rollover ADD COLUMN IF NOT EXISTS ledgerId UUID; 2021-10-01T17:40:19,243 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "ledgerid" of relation "ledger_fiscal_year_rollover" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,243 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.ledger_fiscal_year_rollover ADD COLUMN IF NOT EXISTS ledgerId UUID; 2021-10-01T17:40:19,243 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE ledger_fiscal_year_rollover ADD CONSTRAINT ledgerId_ledger_fkey FOREIGN KEY (ledgerId) REFERENCES ledger; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,244 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE ledger_fiscal_year_rollover ADD CONSTRAINT ledgerId_ledger_fkey FOREIGN KEY (ledgerId) REFERENCES ledger; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,244 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_ledgerId_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover (ledgerId); 2021-10-01T17:40:19,245 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "ledger_fiscal_year_rollover_ledgerid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,245 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_ledgerId_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover (ledgerId); 2021-10-01T17:40:19,245 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('ledger_fiscal_year_rollover'); 2021-10-01T17:40:19,245 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('ledger_fiscal_year_rollover'); 2021-10-01T17:40:19,245 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.ledger_fiscal_year_rollover ADD COLUMN IF NOT EXISTS fromFiscalYearId UUID; 2021-10-01T17:40:19,246 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "fromfiscalyearid" of relation "ledger_fiscal_year_rollover" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,246 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.ledger_fiscal_year_rollover ADD COLUMN IF NOT EXISTS fromFiscalYearId UUID; 2021-10-01T17:40:19,246 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE ledger_fiscal_year_rollover ADD CONSTRAINT fromFiscalYearId_fiscal_year_fkey FOREIGN KEY (fromFiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,246 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE ledger_fiscal_year_rollover ADD CONSTRAINT fromFiscalYearId_fiscal_year_fkey FOREIGN KEY (fromFiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,246 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_fromFiscalYearId_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover (fromFiscalYearId); 2021-10-01T17:40:19,247 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "ledger_fiscal_year_rollover_fromfiscalyearid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,247 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_fromFiscalYearId_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover (fromFiscalYearId); 2021-10-01T17:40:19,247 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('ledger_fiscal_year_rollover'); 2021-10-01T17:40:19,247 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('ledger_fiscal_year_rollover'); 2021-10-01T17:40:19,247 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.ledger_fiscal_year_rollover ADD COLUMN IF NOT EXISTS toFiscalYearId UUID; 2021-10-01T17:40:19,248 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "tofiscalyearid" of relation "ledger_fiscal_year_rollover" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,248 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.ledger_fiscal_year_rollover ADD COLUMN IF NOT EXISTS toFiscalYearId UUID; 2021-10-01T17:40:19,248 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE ledger_fiscal_year_rollover ADD CONSTRAINT toFiscalYearId_fiscal_year_fkey FOREIGN KEY (toFiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,248 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE ledger_fiscal_year_rollover ADD CONSTRAINT toFiscalYearId_fiscal_year_fkey FOREIGN KEY (toFiscalYearId) REFERENCES fiscal_year; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,248 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_toFiscalYearId_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover (toFiscalYearId); 2021-10-01T17:40:19,249 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "ledger_fiscal_year_rollover_tofiscalyearid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,249 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_toFiscalYearId_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover (toFiscalYearId); 2021-10-01T17:40:19,249 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('ledger_fiscal_year_rollover'); 2021-10-01T17:40:19,249 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('ledger_fiscal_year_rollover'); 2021-10-01T17:40:19,249 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_ledger_fiscal_year_rollover_references() RETURNS TRIGGER AS $$ BEGIN NEW.ledgerId = (NEW.jsonb->>'ledgerId'); NEW.fromFiscalYearId = (NEW.jsonb->>'fromFiscalYearId'); NEW.toFiscalYearId = (NEW.jsonb->>'toFiscalYearId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,250 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_ledger_fiscal_year_rollover_references() RETURNS TRIGGER AS $$ BEGIN NEW.ledgerId = (NEW.jsonb->>'ledgerId'); NEW.fromFiscalYearId = (NEW.jsonb->>'fromFiscalYearId'); NEW.toFiscalYearId = (NEW.jsonb->>'toFiscalYearId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,250 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_ledger_fiscal_year_rollover_references ON diku_mod_finance_storage.ledger_fiscal_year_rollover CASCADE; 2021-10-01T17:40:19,250 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_ledger_fiscal_year_rollover_references ON diku_mod_finance_storage.ledger_fiscal_year_rollover CASCADE; 2021-10-01T17:40:19,250 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE TRIGGER update_ledger_fiscal_year_rollover_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.ledger_fiscal_year_rollover FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_ledger_fiscal_year_rollover_references(); 2021-10-01T17:40:19,251 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE TRIGGER update_ledger_fiscal_year_rollover_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.ledger_fiscal_year_rollover FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_ledger_fiscal_year_rollover_references(); 2021-10-01T17:40:19,251 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE ledger_fiscal_year_rollover DROP CONSTRAINT IF EXISTS ' || 'ledgerId_ledger_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE ledger_fiscal_year_rollover DROP CONSTRAINT IF EXISTS ' || 'fromFiscalYearId_fiscal_year_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE ledger_fiscal_year_rollover DROP CONSTRAINT IF EXISTS ' || 'toFiscalYearId_fiscal_year_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,251 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE ledger_fiscal_year_rollover DROP CONSTRAINT IF EXISTS ' || 'ledgerId_ledger_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE ledger_fiscal_year_rollover DROP CONSTRAINT IF EXISTS ' || 'fromFiscalYearId_fiscal_year_fkey' || i; END LOOP; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE ledger_fiscal_year_rollover DROP CONSTRAINT IF EXISTS ' || 'toFiscalYearId_fiscal_year_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,251 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_ledger_fiscal_year_rollover_ol_version_trigger ON diku_mod_finance_storage.ledger_fiscal_year_rollover CASCADE; 2021-10-01T17:40:19,252 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_ledger_fiscal_year_rollover_ol_version_trigger" for relation "diku_mod_finance_storage.ledger_fiscal_year_rollover" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,252 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_ledger_fiscal_year_rollover_ol_version_trigger ON diku_mod_finance_storage.ledger_fiscal_year_rollover CASCADE; 2021-10-01T17:40:19,252 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.ledger_fiscal_year_rollover_set_ol_version() CASCADE; 2021-10-01T17:40:19,253 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.ledger_fiscal_year_rollover_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,253 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.ledger_fiscal_year_rollover_set_ol_version() CASCADE; 2021-10-01T17:40:19,253 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger_fiscal_year_rollover_progress', 'ledger_fiscal_year_rollover_progress_overallRolloverStatus_idx', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_progress_overallRolloverStatus_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover_progress ' || $rmb$(left(lower(f_unaccent(jsonb->>'overallRolloverStatus')),600))$rmb$ ); END $do$; 2021-10-01T17:40:19,254 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger_fiscal_year_rollover_progress', 'ledger_fiscal_year_rollover_progress_overallRolloverStatus_idx', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_progress_overallRolloverStatus_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover_progress ' || $rmb$(left(lower(f_unaccent(jsonb->>'overallRolloverStatus')),600))$rmb$ ); END $do$; 2021-10-01T17:40:19,254 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger_fiscal_year_rollover_progress', 'ledger_fiscal_year_rollover_progress_ledgerRolloverId_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_progress_ledgerRolloverId_idx_unique ON diku_mod_finance_storage.ledger_fiscal_year_rollover_progress ' || $rmb$(lower(f_unaccent(jsonb->>'ledgerRolloverId')))$rmb$ ); END $do$; 2021-10-01T17:40:19,254 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger_fiscal_year_rollover_progress', 'ledger_fiscal_year_rollover_progress_ledgerRolloverId_idx_unique', 'ADD', 'CREATE UNIQUE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_progress_ledgerRolloverId_idx_unique ON diku_mod_finance_storage.ledger_fiscal_year_rollover_progress ' || $rmb$(lower(f_unaccent(jsonb->>'ledgerRolloverId')))$rmb$ ); END $do$; 2021-10-01T17:40:19,254 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.ledger_fiscal_year_rollover_progress ADD COLUMN IF NOT EXISTS ledgerRolloverId UUID; 2021-10-01T17:40:19,255 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "ledgerrolloverid" of relation "ledger_fiscal_year_rollover_progress" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,255 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.ledger_fiscal_year_rollover_progress ADD COLUMN IF NOT EXISTS ledgerRolloverId UUID; 2021-10-01T17:40:19,255 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE ledger_fiscal_year_rollover_progress ADD CONSTRAINT ledgerRolloverId_ledger_fiscal_year_rollover_fkey FOREIGN KEY (ledgerRolloverId) REFERENCES ledger_fiscal_year_rollover; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,255 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE ledger_fiscal_year_rollover_progress ADD CONSTRAINT ledgerRolloverId_ledger_fiscal_year_rollover_fkey FOREIGN KEY (ledgerRolloverId) REFERENCES ledger_fiscal_year_rollover; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,255 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_progress_ledgerRolloverId_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover_progress (ledgerRolloverId); 2021-10-01T17:40:19,256 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "ledger_fiscal_year_rollover_progress_ledgerrolloverid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,256 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_progress_ledgerRolloverId_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover_progress (ledgerRolloverId); 2021-10-01T17:40:19,256 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('ledger_fiscal_year_rollover_progress'); 2021-10-01T17:40:19,256 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('ledger_fiscal_year_rollover_progress'); 2021-10-01T17:40:19,256 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_ledger_fiscal_year_rollover_progress_references() RETURNS TRIGGER AS $$ BEGIN NEW.ledgerRolloverId = (NEW.jsonb->>'ledgerRolloverId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,257 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_ledger_fiscal_year_rollover_progress_references() RETURNS TRIGGER AS $$ BEGIN NEW.ledgerRolloverId = (NEW.jsonb->>'ledgerRolloverId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,257 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_ledger_fiscal_year_rollover_progress_references ON diku_mod_finance_storage.ledger_fiscal_year_rollover_progress CASCADE; 2021-10-01T17:40:19,257 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_ledger_fiscal_year_rollover_progress_references ON diku_mod_finance_storage.ledger_fiscal_year_rollover_progress CASCADE; 2021-10-01T17:40:19,257 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE TRIGGER update_ledger_fiscal_year_rollover_progress_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.ledger_fiscal_year_rollover_progress FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_ledger_fiscal_year_rollover_progress_references(); 2021-10-01T17:40:19,258 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE TRIGGER update_ledger_fiscal_year_rollover_progress_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.ledger_fiscal_year_rollover_progress FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_ledger_fiscal_year_rollover_progress_references(); 2021-10-01T17:40:19,258 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE ledger_fiscal_year_rollover_progress DROP CONSTRAINT IF EXISTS ' || 'ledgerRolloverId_ledger_fiscal_year_rollover_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,259 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE ledger_fiscal_year_rollover_progress DROP CONSTRAINT IF EXISTS ' || 'ledgerRolloverId_ledger_fiscal_year_rollover_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,259 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_ledger_fiscal_year_rollover_progress_ol_version_trigger ON diku_mod_finance_storage.ledger_fiscal_year_rollover_progress CASCADE; 2021-10-01T17:40:19,260 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_ledger_fiscal_year_rollover_progress_ol_version_trigger" for relation "diku_mod_finance_storage.ledger_fiscal_year_rollover_progress" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,260 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_ledger_fiscal_year_rollover_progress_ol_version_trigger ON diku_mod_finance_storage.ledger_fiscal_year_rollover_progress CASCADE; 2021-10-01T17:40:19,260 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.ledger_fiscal_year_rollover_progress_set_ol_version() CASCADE; 2021-10-01T17:40:19,260 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.ledger_fiscal_year_rollover_progress_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,260 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.ledger_fiscal_year_rollover_progress_set_ol_version() CASCADE; 2021-10-01T17:40:19,260 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger_fiscal_year_rollover_error', 'ledger_fiscal_year_rollover_error_details_purchaseOrderId_idx', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_error_details_purchaseOrderId_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover_error ' || $rmb$(left(lower(f_unaccent(jsonb->'details'->>'purchaseOrderId')),600))$rmb$ ); END $do$; 2021-10-01T17:40:19,261 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger_fiscal_year_rollover_error', 'ledger_fiscal_year_rollover_error_details_purchaseOrderId_idx', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_error_details_purchaseOrderId_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover_error ' || $rmb$(left(lower(f_unaccent(jsonb->'details'->>'purchaseOrderId')),600))$rmb$ ); END $do$; 2021-10-01T17:40:19,261 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger_fiscal_year_rollover_error', 'ledger_fiscal_year_rollover_error_details_fundId_idx', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_error_details_fundId_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover_error ' || $rmb$(left(lower(f_unaccent(jsonb->'details'->>'fundId')),600))$rmb$ ); END $do$; 2021-10-01T17:40:19,262 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger_fiscal_year_rollover_error', 'ledger_fiscal_year_rollover_error_details_fundId_idx', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_error_details_fundId_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover_error ' || $rmb$(left(lower(f_unaccent(jsonb->'details'->>'fundId')),600))$rmb$ ); END $do$; 2021-10-01T17:40:19,262 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger_fiscal_year_rollover_error', 'ledger_fiscal_year_rollover_error_errorType_idx', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_error_errorType_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover_error ' || $rmb$(left(lower(f_unaccent(jsonb->>'errorType')),600))$rmb$ ); END $do$; 2021-10-01T17:40:19,263 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $do$ BEGIN PERFORM rmb_internal_index( 'ledger_fiscal_year_rollover_error', 'ledger_fiscal_year_rollover_error_errorType_idx', 'ADD', 'CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_error_errorType_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover_error ' || $rmb$(left(lower(f_unaccent(jsonb->>'errorType')),600))$rmb$ ); END $do$; 2021-10-01T17:40:19,263 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} ALTER TABLE diku_mod_finance_storage.ledger_fiscal_year_rollover_error ADD COLUMN IF NOT EXISTS ledgerRolloverId UUID; 2021-10-01T17:40:19,264 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42701', message='column "ledgerrolloverid" of relation "ledger_fiscal_year_rollover_error" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='tablecmds.c', line='6179', routine='check_for_column_name_collision', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,264 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed ALTER TABLE diku_mod_finance_storage.ledger_fiscal_year_rollover_error ADD COLUMN IF NOT EXISTS ledgerRolloverId UUID; 2021-10-01T17:40:19,264 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ BEGIN BEGIN ALTER TABLE ledger_fiscal_year_rollover_error ADD CONSTRAINT ledgerRolloverId_ledger_fiscal_year_rollover_fkey FOREIGN KEY (ledgerRolloverId) REFERENCES ledger_fiscal_year_rollover; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,264 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ BEGIN BEGIN ALTER TABLE ledger_fiscal_year_rollover_error ADD CONSTRAINT ledgerRolloverId_ledger_fiscal_year_rollover_fkey FOREIGN KEY (ledgerRolloverId) REFERENCES ledger_fiscal_year_rollover; EXCEPTION WHEN duplicate_object OR duplicate_table THEN NULL; END; END $$; 2021-10-01T17:40:19,264 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_error_ledgerRolloverId_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover_error (ledgerRolloverId); 2021-10-01T17:40:19,265 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='42P07', message='relation "ledger_fiscal_year_rollover_error_ledgerrolloverid_idx" already exists, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='index.c', line='852', routine='index_create', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,265 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE INDEX IF NOT EXISTS ledger_fiscal_year_rollover_error_ledgerRolloverId_idx ON diku_mod_finance_storage.ledger_fiscal_year_rollover_error (ledgerRolloverId); 2021-10-01T17:40:19,265 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} INSERT INTO rmb_internal_analyze VALUES ('ledger_fiscal_year_rollover_error'); 2021-10-01T17:40:19,265 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed INSERT INTO rmb_internal_analyze VALUES ('ledger_fiscal_year_rollover_error'); 2021-10-01T17:40:19,265 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_ledger_fiscal_year_rollover_error_references() RETURNS TRIGGER AS $$ BEGIN NEW.ledgerRolloverId = (NEW.jsonb->>'ledgerRolloverId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,266 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE OR REPLACE FUNCTION diku_mod_finance_storage.update_ledger_fiscal_year_rollover_error_references() RETURNS TRIGGER AS $$ BEGIN NEW.ledgerRolloverId = (NEW.jsonb->>'ledgerRolloverId'); RETURN NEW; END; $$ language 'plpgsql'; 2021-10-01T17:40:19,266 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS update_ledger_fiscal_year_rollover_error_references ON diku_mod_finance_storage.ledger_fiscal_year_rollover_error CASCADE; 2021-10-01T17:40:19,267 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS update_ledger_fiscal_year_rollover_error_references ON diku_mod_finance_storage.ledger_fiscal_year_rollover_error CASCADE; 2021-10-01T17:40:19,267 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} CREATE TRIGGER update_ledger_fiscal_year_rollover_error_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.ledger_fiscal_year_rollover_error FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_ledger_fiscal_year_rollover_error_references(); 2021-10-01T17:40:19,267 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed CREATE TRIGGER update_ledger_fiscal_year_rollover_error_references BEFORE INSERT OR UPDATE ON diku_mod_finance_storage.ledger_fiscal_year_rollover_error FOR EACH ROW EXECUTE PROCEDURE diku_mod_finance_storage.update_ledger_fiscal_year_rollover_error_references(); 2021-10-01T17:40:19,267 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE ledger_fiscal_year_rollover_error DROP CONSTRAINT IF EXISTS ' || 'ledgerRolloverId_ledger_fiscal_year_rollover_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,267 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE version TEXT; i INT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM rmb_internal; IF version !~ '^(\d\.|1\d\.|2\d\.|30\.0\.)' THEN RETURN; END IF; FOR i IN 1..50 LOOP EXECUTE 'ALTER TABLE ledger_fiscal_year_rollover_error DROP CONSTRAINT IF EXISTS ' || 'ledgerRolloverId_ledger_fiscal_year_rollover_fkey' || i; END LOOP; END $$; 2021-10-01T17:40:19,267 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP TRIGGER IF EXISTS set_ledger_fiscal_year_rollover_error_ol_version_trigger ON diku_mod_finance_storage.ledger_fiscal_year_rollover_error CASCADE; 2021-10-01T17:40:19,268 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='trigger "set_ledger_fiscal_year_rollover_error_ol_version_trigger" for relation "diku_mod_finance_storage.ledger_fiscal_year_rollover_error" does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,268 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP TRIGGER IF EXISTS set_ledger_fiscal_year_rollover_error_ol_version_trigger ON diku_mod_finance_storage.ledger_fiscal_year_rollover_error CASCADE; 2021-10-01T17:40:19,268 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DROP FUNCTION IF EXISTS diku_mod_finance_storage.ledger_fiscal_year_rollover_error_set_ol_version() CASCADE; 2021-10-01T17:40:19,268 WARN [vert.x-eventloop-thread-1] SocketConnectionBase Backend notice: severity='NOTICE', code='00000', message='function diku_mod_finance_storage.ledger_fiscal_year_rollover_error_set_ol_version() does not exist, skipping', detail='null', hint='null', position='null', internalPosition='null', internalQuery='null', where='null', file='dropcmds.c', line='491', routine='does_not_exist_skipping', schema='null', table='null', column='null', dataType='null', constraint='null' 2021-10-01T17:40:19,268 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DROP FUNCTION IF EXISTS diku_mod_finance_storage.ledger_fiscal_year_rollover_error_set_ol_version() CASCADE; 2021-10-01T17:40:19,269 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} UPDATE diku_mod_finance_storage.fund SET jsonb = jsonb || jsonb_build_object('code', replace(jsonb->>'code', ':', '-')); 2021-10-01T17:40:19,277 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed UPDATE diku_mod_finance_storage.fund SET jsonb = jsonb || jsonb_build_object('code', replace(jsonb->>'code', ':', '-')); 2021-10-01T17:40:19,277 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} UPDATE diku_mod_finance_storage.expense_class SET jsonb = jsonb || jsonb_build_object('code', jsonb->>'name') WHERE NOT jsonb ? 'code' OR jsonb->>'code' = ''; 2021-10-01T17:40:19,279 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed UPDATE diku_mod_finance_storage.expense_class SET jsonb = jsonb || jsonb_build_object('code', jsonb->>'name') WHERE NOT jsonb ? 'code' OR jsonb->>'code' = ''; 2021-10-01T17:40:19,279 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} UPDATE diku_mod_finance_storage.expense_class SET jsonb = jsonb || jsonb_build_object('code', replace(jsonb->>'code', ':', '-')); 2021-10-01T17:40:19,280 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed UPDATE diku_mod_finance_storage.expense_class SET jsonb = jsonb || jsonb_build_object('code', replace(jsonb->>'code', ':', '-')); 2021-10-01T17:40:19,280 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE aname TEXT; BEGIN FOR aname IN SELECT name FROM diku_mod_finance_storage.rmb_internal_index WHERE remove = TRUE LOOP EXECUTE 'DROP INDEX IF EXISTS ' || aname; END LOOP; END $$; 2021-10-01T17:40:19,280 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE aname TEXT; BEGIN FOR aname IN SELECT name FROM diku_mod_finance_storage.rmb_internal_index WHERE remove = TRUE LOOP EXECUTE 'DROP INDEX IF EXISTS ' || aname; END LOOP; END $$; 2021-10-01T17:40:19,280 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE version TEXT; i RECORD; newindexdef TEXT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM diku_mod_finance_storage.rmb_internal; IF version !~ '^(\d\.|1\d\.|2[0-8]\.|29\.[0-3]\.)' THEN -- skip this upgrade if last install/upgrade was made by RMB >= 29.4.x RETURN; END IF; FOR i IN SELECT * FROM pg_catalog.pg_indexes WHERE schemaname = 'diku_mod_finance_storage' LOOP newindexdef := regexp_replace(i.indexdef, -- \m = beginning of a word, \M = end of a word '\mpublic\.(f_unaccent|concat_space_sql|concat_array_object_values|concat_array_object)\M', 'diku_mod_finance_storage.\1', 'g'); IF newindexdef <> i.indexdef THEN EXECUTE 'DROP INDEX ' || i.indexname; EXECUTE newindexdef; EXECUTE 'INSERT INTO rmb_internal_analyze VALUES ($1)' USING i.tablename; END IF; END LOOP; END $$; 2021-10-01T17:40:19,281 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE version TEXT; i RECORD; newindexdef TEXT; BEGIN SELECT jsonb->>'rmbVersion' INTO version FROM diku_mod_finance_storage.rmb_internal; IF version !~ '^(\d\.|1\d\.|2[0-8]\.|29\.[0-3]\.)' THEN -- skip this upgrade if last install/upgrade was made by RMB >= 29.4.x RETURN; END IF; FOR i IN SELECT * FROM pg_catalog.pg_indexes WHERE schemaname = 'diku_mod_finance_storage' LOOP newindexdef := regexp_replace(i.indexdef, -- \m = beginning of a word, \M = end of a word '\mpublic\.(f_unaccent|concat_space_sql|concat_array_object_values|concat_array_object)\M', 'diku_mod_finance_storage.\1', 'g'); IF newindexdef <> i.indexdef THEN EXECUTE 'DROP INDEX ' || i.indexname; EXECUTE newindexdef; EXECUTE 'INSERT INTO rmb_internal_analyze VALUES ($1)' USING i.tablename; END IF; END LOOP; END $$; 2021-10-01T17:40:19,281 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} DO $$ DECLARE t TEXT; BEGIN FOR t IN SELECT DISTINCT tablename FROM rmb_internal_analyze LOOP EXECUTE 'ANALYZE ' || t; END LOOP; END $$; 2021-10-01T17:40:19,292 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed DO $$ DECLARE t TEXT; BEGIN FOR t IN SELECT DISTINCT tablename FROM rmb_internal_analyze LOOP EXECUTE 'ANALYZE ' || t; END LOOP; END $$; 2021-10-01T17:40:19,292 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} TRUNCATE rmb_internal_analyze; 2021-10-01T17:40:19,295 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed TRUNCATE rmb_internal_analyze; 2021-10-01T17:40:19,295 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA diku_mod_finance_storage TO diku_mod_finance_storage; 2021-10-01T17:40:19,299 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed GRANT ALL PRIVILEGES ON ALL TABLES IN SCHEMA diku_mod_finance_storage TO diku_mod_finance_storage; 2021-10-01T17:40:19,299 INFO [vert.x-eventloop-thread-1] PostgresClient trying to execute: {} UPDATE diku_mod_finance_storage.rmb_internal SET jsonb = jsonb || jsonb_build_object( 'rmbVersion', '33.0.0', 'moduleVersion', 'mod-finance-storage-7.2.0', 'schemaJson', $mainftl${ "exactCount" : 20000, "scripts": [ { "run": "after", "snippetPath": "group_budget_view.sql", "fromModuleVersion": "mod-finance-storage-4.0.0" }, { "run": "after", "snippetPath": "migration/transaction.sql", "fromModuleVersion": "mod-finance-storage-4.0.0" }, { "run": "after", "snippetPath": "migration/ledgers.sql", "fromModuleVersion": "mod-finance-storage-4.0.0" }, { "run": "after", "snippetPath": "migration/funds.sql", "fromModuleVersion": "mod-finance-storage-4.0.0" }, { "run": "after", "snippetPath": "migration/fiscal_years.sql", "fromModuleVersion": "mod-finance-storage-4.0.0" }, { "run": "after", "snippetPath": "migration/budgets.sql", "fromModuleVersion": "mod-finance-storage-4.2.1" }, { "run": "after", "snippetPath": "migration/delete_trigger_functions.sql", "fromModuleVersion": "mod-finance-storage-4.2.1" }, { "run": "after", "snippetPath": "migration/transaction_source_enum.sql", "fromModuleVersion": "mod-finance-storage-5.0.0" }, { "run": "after", "snippetPath": "migration/pending_payment_cross_module.ftl", "fromModuleVersion": "mod-finance-storage-5.0.0" }, { "run": "after", "snippetPath": "migration/fill_budget_net_transfer.sql", "fromModuleVersion": "mod-finance-storage-6.0.0" }, { "run": "after", "snippetPath": "migration/update_processed_order_transaction_summary.sql", "fromModuleVersion": "mod-finance-storage-6.0.0" }, { "run": "after", "snippetPath": "migration/update_order_encumbrance.sql", "fromModuleVersion": "mod-finance-storage-7.0.0" }, { "run": "after", "snippetPath": "migration/update_encumbrances_order_status.ftl", "fromModuleVersion": "mod-finance-storage-7.0.3" }, { "run": "after", "snippetPath": "migration/update_budget_summary_information.sql", "fromModuleVersion": "mod-finance-storage-7.0.0" }, { "run": "after", "snippetPath": "budget_financial_summary_view.sql", "fromModuleVersion": "mod-finance-storage-7.0.0" }, { "run": "after", "snippetPath": "budget_encumbrances_rollover.sql", "fromModuleVersion": "mod-finance-storage-7.1.1" }, { "run": "after", "snippetPath": "migration/restrictions_for_fund_and_ec_codes.sql", "fromModuleVersion": "mod-finance-storage-8.0.0" } ], "tables": [ { "tableName": "expense_class", "fromModuleVersion": "mod-finance-storage-6.0.0", "uniqueIndex": [ { "fieldName": "name", "tOps": "ADD" }, { "fieldName": "code", "tOps": "ADD" } ] }, { "tableName": "fiscal_year", "fromModuleVersion": "mod-finance-storage-5.0.0", "withMetadata": true, "index": [ { "fieldName" : "periodEnd", "tOps": "ADD" } ], "ginIndex": [ { "fieldName": "name", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "acqUnitIds", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "code", "tOps": "DELETE" }, { "fieldName": "series", "tOps": "ADD", "caseSensitive": false, "removeAccents": true } ], "uniqueIndex": [ { "fieldName": "code", "tOps": "ADD" } ] }, { "tableName": "ledger", "fromModuleVersion": "mod-finance-storage-5.0.0", "withMetadata": true, "foreignKeys": [ { "fieldName": "fiscalYearOneId", "targetTable": "fiscal_year", "tOps": "ADD" } ], "index": [ { "fieldName": "ledgerStatus", "tOps": "ADD" } ], "ginIndex": [ { "fieldName": "name", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "code", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "acqUnitIds", "tOps": "ADD", "caseSensitive": false, "removeAccents": true } ], "uniqueIndex": [ { "fieldName": "name", "tOps": "ADD" }, { "fieldName": "code", "tOps": "ADD" } ] }, { "tableName": "fund_type", "fromModuleVersion": "mod-finance-storage-4.0.0", "uniqueIndex": [ { "fieldName": "name", "tOps": "ADD" } ] }, { "tableName": "fund", "fromModuleVersion": "mod-finance-storage-4.0.0", "withMetadata": true, "foreignKeys": [ { "fieldName": "ledgerId", "targetTable": "ledger", "tableAlias": "fund", "targetTableAlias": "ledger", "tOps": "ADD" }, { "fieldName": "fundTypeId", "targetTable": "fund_type", "tOps": "ADD" } ], "uniqueIndex": [ { "fieldName": "code", "tOps": "ADD" } ], "ginIndex": [ { "fieldName": "name", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "acqUnitIds", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "fundStatus", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "code", "tOps": "DELETE" }, { "fieldName": "fund_status", "tOps": "DELETE" }, { "fieldName": "currency", "tOps": "DELETE" } ] }, { "tableName": "budget", "fromModuleVersion": "mod-finance-storage-4.1.2", "withMetadata": true, "foreignKeys": [ { "fieldName": "fundId", "targetTable": "fund", "tableAlias": "budget", "targetTableAlias": "fund", "tOps": "ADD" }, { "targetPath": ["fundId", "ledgerId"], "targetTable": "ledger", "targetTableAlias": "ledger", "tableAlias": "budget" }, { "fieldName": "fiscalYearId", "targetTable": "fiscal_year", "tableAlias": "budget", "targetTableAlias": "fiscalYear", "tOps": "ADD" } ], "uniqueIndex": [ { "fieldName": "fundId, fiscalYearId", "tOps": "ADD" } ], "ginIndex": [ { "fieldName": "name", "tOps": "DELETE" }, { "fieldName": "code", "tOps": "DELETE" }, { "fieldName": "budget_status", "tOps": "DELETE" }, { "fieldName": "budgetStatus", "tOps": "ADD", "caseSensitive": false, "removeAccents": true } ] }, { "tableName": "budget_expense_class", "fromModuleVersion": "mod-finance-storage-6.0.0", "uniqueIndex": [ { "fieldName": "budgetId_expenseClassId", "multiFieldNames": "budgetId, expenseClassId", "tOps": "ADD" } ], "foreignKeys": [ { "fieldName": "budgetId", "targetTable": "budget", "tableAlias": "budgetExpenseClass", "targetTableAlias": "budget", "tOps": "ADD" }, { "fieldName": "expenseClassId", "targetTable": "expense_class", "tableAlias": "budgetExpenseClass", "targetTableAlias": "expenseClass", "tOps": "ADD" } ] }, { "tableName": "fund_distribution", "fromModuleVersion": "mod-finance-storage-4.2.1", "mode": "delete", "auditingTableName": "NOT_EXISTING_AUDITING_TABLE" }, { "tableName": "transaction", "fromModuleVersion": "mod-finance-storage-7.1.0", "withMetadata": true, "customSnippetPath": "transactions.sql", "uniqueIndex": [ { "fieldName": "encumbrance", "multiFieldNames": "amount, fromFundId, encumbrance.sourcePurchaseOrderId, encumbrance.sourcePoLineId, encumbrance.initialAmountEncumbered, encumbrance.status, expenseClassId, fiscalYearId", "tOps": "ADD", "whereClause": "WHERE (jsonb->>'transactionType')::text = 'Encumbrance'" }, { "fieldName": "payment", "multiFieldNames": "amount, fromFundId, sourceInvoiceId, sourceInvoiceLineId, transactionType, expenseClassId", "tOps": "ADD", "whereClause": "WHERE (jsonb->>'transactionType')::text = 'Payment' OR (jsonb->>'transactionType')::text = 'Pending payment'" }, { "fieldName": "credit", "multiFieldNames": "amount, toFundId, sourceInvoiceId, sourceInvoiceLineId, transactionType, expenseClassId", "tOps": "ADD", "whereClause": "WHERE (jsonb->>'transactionType')::text = 'Credit'" } ], "foreignKeys": [ { "fieldName": "fiscalYearId", "targetTable": "fiscal_year", "tOps": "ADD" }, { "fieldName": "fromFundId", "targetTable": "fund", "tOps": "ADD" }, { "fieldName": "sourceFiscalYearId", "targetTable": "fiscal_year", "tOps": "ADD" }, { "fieldName": "toFundId", "targetTable": "fund", "tOps": "ADD" }, { "fieldName": "expenseClassId", "targetTable": "expense_class" } ], "ginIndex": [ { "fieldName": "amount", "tOps": "ADD", "caseSensitive": false, "removeAccents": true } ] }, { "tableName": "groups", "fromModuleVersion": "mod-finance-storage-4.0.0", "withMetadata": true, "ginIndex": [ { "fieldName": "status", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "acqUnitIds", "tOps": "ADD", "caseSensitive": false, "removeAccents": true } ], "uniqueIndex": [ { "fieldName": "code", "tOps": "ADD" }, { "fieldName": "name", "tOps": "ADD" } ] }, { "tableName": "ledgerFY", "fromModuleVersion": "mod-finance-storage-6.0.0", "mode": "delete", "auditingTableName": "NOT_EXISTING_AUDITING_TABLE" }, { "tableName": "group_fund_fiscal_year", "fromModuleVersion": "mod-finance-storage-4.0.0", "foreignKeys": [ { "fieldName": "budgetId", "targetTable": "budget", "tableAlias": "groupFundFY", "targetTableAlias": "budget", "tOps": "ADD" }, { "fieldName": "groupId", "targetTable": "groups", "tableAlias": "groupFundFY", "targetTableAlias": "group", "tOps": "ADD" }, { "fieldName": "fundId", "targetTable": "fund", "tableAlias": "groupFundFY", "targetTableAlias": "fund", "tOps": "ADD" }, { "fieldName": "fiscalYearId", "targetTable": "fiscal_year", "tableAlias": "groupFundFY", "targetTableAlias": "fiscalYear", "tOps": "ADD" }, { "targetPath": [ "fundId", "ledgerId" ], "targetTable": "ledger", "targetTableAlias": "ledger", "tableAlias": "groupFundFY", "tOps": "ADD" }, { "targetPath": ["fundId", "fundTypeId"], "targetTable": "fund_type", "targetTableAlias": "fundType", "tableAlias": "groupFundFY", "tOps": "ADD" } ], "uniqueIndex": [ { "fieldName": "groupId, fundId, fiscalYearId", "tOps": "ADD" } ] }, { "tableName": "order_transaction_summaries", "fromModuleVersion": "mod-finance-storage-4.0.0" }, { "tableName": "temporary_order_transactions", "fromModuleVersion": "mod-finance-storage-6.0.0", "foreignKeys": [ { "fieldName": "encumbrance.sourcePurchaseOrderId", "targetTable": "order_transaction_summaries", "tOps": "ADD" }, { "fieldName": "fiscalYearId", "targetTable": "fiscal_year", "tOps": "ADD" }, { "fieldName": "fromFundId", "targetTable": "fund", "tOps": "ADD" }, { "fieldName": "expenseClassId", "targetTable": "expense_class" } ], "uniqueIndex": [ { "fieldName": "temp_order_tx", "multiFieldNames": "amount, fromFundId, encumbrance.sourcePurchaseOrderId, encumbrance.sourcePoLineId, encumbrance.initialAmountEncumbered, encumbrance.status, expenseClassId", "tOps": "ADD" } ] }, { "tableName": "invoice_transaction_summaries", "fromModuleVersion": "mod-finance-storage-4.2.1" }, { "tableName": "temporary_invoice_transactions", "fromModuleVersion": "mod-finance-storage-6.0.0", "uniqueIndex": [ { "fieldName": "temp_invoice_tx", "sqlExpression": "concat_space_sql(lower(f_unaccent(jsonb->>'amount')) , lower(f_unaccent(jsonb->>'fromFundId')) , lower(f_unaccent(jsonb->>'sourceInvoiceId')) , lower(f_unaccent(jsonb->>'sourceInvoiceLineId')) , lower(f_unaccent(jsonb->>'toFundId')) , lower(f_unaccent(jsonb->>'transactionType')), lower(f_unaccent(jsonb->>'expenseClassId')))", "tOps": "ADD" } ], "foreignKeys": [ { "fieldName": "sourceInvoiceId", "targetTable": "invoice_transaction_summaries", "tOps": "ADD" }, { "fieldName": "paymentEncumbranceId", "targetTable": "transaction", "tOps": "ADD" }, { "fieldName": "fromFundId", "targetTable": "fund", "tOps": "ADD" }, { "fieldName": "toFundId", "targetTable": "fund", "tOps": "ADD" }, { "fieldName": "fiscalYearId", "targetTable": "fiscal_year", "tOps": "ADD" }, { "fieldName": "expenseClassId", "targetTable": "expense_class" } ] }, { "tableName": "temporary_invoice_payments", "fromModuleVersion": "mod-finance-storage-4.2.1", "mode": "delete", "auditingTableName": "NOT_EXISTING_AUDITING_TABLE" }, { "tableName": "ledger_fiscal_year_rollover", "fromModuleVersion": "mod-finance-storage-7.0.0", "withMetadata": true, "foreignKeys": [ { "fieldName": "ledgerId", "targetTable": "ledger" }, { "fieldName": "fromFiscalYearId", "targetTable": "fiscal_year" }, { "fieldName": "toFiscalYearId", "targetTable": "fiscal_year" } ], "uniqueIndex": [ { "fieldName": "ledgerId_fromFiscalYearId", "multiFieldNames": "ledgerId, fromFiscalYearId", "tOps": "ADD" } ] }, { "tableName": "ledger_fiscal_year_rollover_progress", "fromModuleVersion": "mod-finance-storage-7.0.0", "withMetadata": true, "index": [ { "fieldName": "overallRolloverStatus", "tOps": "ADD", "caseSensitive": false, "removeAccents": true } ], "uniqueIndex": [ { "fieldName": "ledgerRolloverId", "tOps": "ADD" } ], "foreignKeys": [ { "fieldName": "ledgerRolloverId", "targetTable": "ledger_fiscal_year_rollover", "tableAlias": "ledgerFYROProgress", "targetTableAlias": "ledgerFYRO", "tOps": "ADD" } ] }, { "tableName": "ledger_fiscal_year_rollover_error", "fromModuleVersion": "mod-finance-storage-7.0.0", "withMetadata": true, "index": [ { "fieldName": "details.purchaseOrderId", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "details.fundId", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "errorType" } ], "foreignKeys": [ { "fieldName": "ledgerRolloverId", "targetTable": "ledger_fiscal_year_rollover", "tableAlias": "ledgerFYROError", "targetTableAlias": "ledgerFYRO", "tOps": "ADD" } ] } ] } $mainftl$); 2021-10-01T17:40:19,305 INFO [vert.x-eventloop-thread-1] PostgresClient Successfully executed UPDATE diku_mod_finance_storage.rmb_internal SET jsonb = jsonb || jsonb_build_object( 'rmbVersion', '33.0.0', 'moduleVersion', 'mod-finance-storage-7.2.0', 'schemaJson', $mainftl${ "exactCount" : 20000, "scripts": [ { "run": "after", "snippetPath": "group_budget_view.sql", "fromModuleVersion": "mod-finance-storage-4.0.0" }, { "run": "after", "snippetPath": "migration/transaction.sql", "fromModuleVersion": "mod-finance-storage-4.0.0" }, { "run": "after", "snippetPath": "migration/ledgers.sql", "fromModuleVersion": "mod-finance-storage-4.0.0" }, { "run": "after", "snippetPath": "migration/funds.sql", "fromModuleVersion": "mod-finance-storage-4.0.0" }, { "run": "after", "snippetPath": "migration/fiscal_years.sql", "fromModuleVersion": "mod-finance-storage-4.0.0" }, { "run": "after", "snippetPath": "migration/budgets.sql", "fromModuleVersion": "mod-finance-storage-4.2.1" }, { "run": "after", "snippetPath": "migration/delete_trigger_functions.sql", "fromModuleVersion": "mod-finance-storage-4.2.1" }, { "run": "after", "snippetPath": "migration/transaction_source_enum.sql", "fromModuleVersion": "mod-finance-storage-5.0.0" }, { "run": "after", "snippetPath": "migration/pending_payment_cross_module.ftl", "fromModuleVersion": "mod-finance-storage-5.0.0" }, { "run": "after", "snippetPath": "migration/fill_budget_net_transfer.sql", "fromModuleVersion": "mod-finance-storage-6.0.0" }, { "run": "after", "snippetPath": "migration/update_processed_order_transaction_summary.sql", "fromModuleVersion": "mod-finance-storage-6.0.0" }, { "run": "after", "snippetPath": "migration/update_order_encumbrance.sql", "fromModuleVersion": "mod-finance-storage-7.0.0" }, { "run": "after", "snippetPath": "migration/update_encumbrances_order_status.ftl", "fromModuleVersion": "mod-finance-storage-7.0.3" }, { "run": "after", "snippetPath": "migration/update_budget_summary_information.sql", "fromModuleVersion": "mod-finance-storage-7.0.0" }, { "run": "after", "snippetPath": "budget_financial_summary_view.sql", "fromModuleVersion": "mod-finance-storage-7.0.0" }, { "run": "after", "snippetPath": "budget_encumbrances_rollover.sql", "fromModuleVersion": "mod-finance-storage-7.1.1" }, { "run": "after", "snippetPath": "migration/restrictions_for_fund_and_ec_codes.sql", "fromModuleVersion": "mod-finance-storage-8.0.0" } ], "tables": [ { "tableName": "expense_class", "fromModuleVersion": "mod-finance-storage-6.0.0", "uniqueIndex": [ { "fieldName": "name", "tOps": "ADD" }, { "fieldName": "code", "tOps": "ADD" } ] }, { "tableName": "fiscal_year", "fromModuleVersion": "mod-finance-storage-5.0.0", "withMetadata": true, "index": [ { "fieldName" : "periodEnd", "tOps": "ADD" } ], "ginIndex": [ { "fieldName": "name", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "acqUnitIds", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "code", "tOps": "DELETE" }, { "fieldName": "series", "tOps": "ADD", "caseSensitive": false, "removeAccents": true } ], "uniqueIndex": [ { "fieldName": "code", "tOps": "ADD" } ] }, { "tableName": "ledger", "fromModuleVersion": "mod-finance-storage-5.0.0", "withMetadata": true, "foreignKeys": [ { "fieldName": "fiscalYearOneId", "targetTable": "fiscal_year", "tOps": "ADD" } ], "index": [ { "fieldName": "ledgerStatus", "tOps": "ADD" } ], "ginIndex": [ { "fieldName": "name", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "code", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "acqUnitIds", "tOps": "ADD", "caseSensitive": false, "removeAccents": true } ], "uniqueIndex": [ { "fieldName": "name", "tOps": "ADD" }, { "fieldName": "code", "tOps": "ADD" } ] }, { "tableName": "fund_type", "fromModuleVersion": "mod-finance-storage-4.0.0", "uniqueIndex": [ { "fieldName": "name", "tOps": "ADD" } ] }, { "tableName": "fund", "fromModuleVersion": "mod-finance-storage-4.0.0", "withMetadata": true, "foreignKeys": [ { "fieldName": "ledgerId", "targetTable": "ledger", "tableAlias": "fund", "targetTableAlias": "ledger", "tOps": "ADD" }, { "fieldName": "fundTypeId", "targetTable": "fund_type", "tOps": "ADD" } ], "uniqueIndex": [ { "fieldName": "code", "tOps": "ADD" } ], "ginIndex": [ { "fieldName": "name", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "acqUnitIds", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "fundStatus", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "code", "tOps": "DELETE" }, { "fieldName": "fund_status", "tOps": "DELETE" }, { "fieldName": "currency", "tOps": "DELETE" } ] }, { "tableName": "budget", "fromModuleVersion": "mod-finance-storage-4.1.2", "withMetadata": true, "foreignKeys": [ { "fieldName": "fundId", "targetTable": "fund", "tableAlias": "budget", "targetTableAlias": "fund", "tOps": "ADD" }, { "targetPath": ["fundId", "ledgerId"], "targetTable": "ledger", "targetTableAlias": "ledger", "tableAlias": "budget" }, { "fieldName": "fiscalYearId", "targetTable": "fiscal_year", "tableAlias": "budget", "targetTableAlias": "fiscalYear", "tOps": "ADD" } ], "uniqueIndex": [ { "fieldName": "fundId, fiscalYearId", "tOps": "ADD" } ], "ginIndex": [ { "fieldName": "name", "tOps": "DELETE" }, { "fieldName": "code", "tOps": "DELETE" }, { "fieldName": "budget_status", "tOps": "DELETE" }, { "fieldName": "budgetStatus", "tOps": "ADD", "caseSensitive": false, "removeAccents": true } ] }, { "tableName": "budget_expense_class", "fromModuleVersion": "mod-finance-storage-6.0.0", "uniqueIndex": [ { "fieldName": "budgetId_expenseClassId", "multiFieldNames": "budgetId, expenseClassId", "tOps": "ADD" } ], "foreignKeys": [ { "fieldName": "budgetId", "targetTable": "budget", "tableAlias": "budgetExpenseClass", "targetTableAlias": "budget", "tOps": "ADD" }, { "fieldName": "expenseClassId", "targetTable": "expense_class", "tableAlias": "budgetExpenseClass", "targetTableAlias": "expenseClass", "tOps": "ADD" } ] }, { "tableName": "fund_distribution", "fromModuleVersion": "mod-finance-storage-4.2.1", "mode": "delete", "auditingTableName": "NOT_EXISTING_AUDITING_TABLE" }, { "tableName": "transaction", "fromModuleVersion": "mod-finance-storage-7.1.0", "withMetadata": true, "customSnippetPath": "transactions.sql", "uniqueIndex": [ { "fieldName": "encumbrance", "multiFieldNames": "amount, fromFundId, encumbrance.sourcePurchaseOrderId, encumbrance.sourcePoLineId, encumbrance.initialAmountEncumbered, encumbrance.status, expenseClassId, fiscalYearId", "tOps": "ADD", "whereClause": "WHERE (jsonb->>'transactionType')::text = 'Encumbrance'" }, { "fieldName": "payment", "multiFieldNames": "amount, fromFundId, sourceInvoiceId, sourceInvoiceLineId, transactionType, expenseClassId", "tOps": "ADD", "whereClause": "WHERE (jsonb->>'transactionType')::text = 'Payment' OR (jsonb->>'transactionType')::text = 'Pending payment'" }, { "fieldName": "credit", "multiFieldNames": "amount, toFundId, sourceInvoiceId, sourceInvoiceLineId, transactionType, expenseClassId", "tOps": "ADD", "whereClause": "WHERE (jsonb->>'transactionType')::text = 'Credit'" } ], "foreignKeys": [ { "fieldName": "fiscalYearId", "targetTable": "fiscal_year", "tOps": "ADD" }, { "fieldName": "fromFundId", "targetTable": "fund", "tOps": "ADD" }, { "fieldName": "sourceFiscalYearId", "targetTable": "fiscal_year", "tOps": "ADD" }, { "fieldName": "toFundId", "targetTable": "fund", "tOps": "ADD" }, { "fieldName": "expenseClassId", "targetTable": "expense_class" } ], "ginIndex": [ { "fieldName": "amount", "tOps": "ADD", "caseSensitive": false, "removeAccents": true } ] }, { "tableName": "groups", "fromModuleVersion": "mod-finance-storage-4.0.0", "withMetadata": true, "ginIndex": [ { "fieldName": "status", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "acqUnitIds", "tOps": "ADD", "caseSensitive": false, "removeAccents": true } ], "uniqueIndex": [ { "fieldName": "code", "tOps": "ADD" }, { "fieldName": "name", "tOps": "ADD" } ] }, { "tableName": "ledgerFY", "fromModuleVersion": "mod-finance-storage-6.0.0", "mode": "delete", "auditingTableName": "NOT_EXISTING_AUDITING_TABLE" }, { "tableName": "group_fund_fiscal_year", "fromModuleVersion": "mod-finance-storage-4.0.0", "foreignKeys": [ { "fieldName": "budgetId", "targetTable": "budget", "tableAlias": "groupFundFY", "targetTableAlias": "budget", "tOps": "ADD" }, { "fieldName": "groupId", "targetTable": "groups", "tableAlias": "groupFundFY", "targetTableAlias": "group", "tOps": "ADD" }, { "fieldName": "fundId", "targetTable": "fund", "tableAlias": "groupFundFY", "targetTableAlias": "fund", "tOps": "ADD" }, { "fieldName": "fiscalYearId", "targetTable": "fiscal_year", "tableAlias": "groupFundFY", "targetTableAlias": "fiscalYear", "tOps": "ADD" }, { "targetPath": [ "fundId", "ledgerId" ], "targetTable": "ledger", "targetTableAlias": "ledger", "tableAlias": "groupFundFY", "tOps": "ADD" }, { "targetPath": ["fundId", "fundTypeId"], "targetTable": "fund_type", "targetTableAlias": "fundType", "tableAlias": "groupFundFY", "tOps": "ADD" } ], "uniqueIndex": [ { "fieldName": "groupId, fundId, fiscalYearId", "tOps": "ADD" } ] }, { "tableName": "order_transaction_summaries", "fromModuleVersion": "mod-finance-storage-4.0.0" }, { "tableName": "temporary_order_transactions", "fromModuleVersion": "mod-finance-storage-6.0.0", "foreignKeys": [ { "fieldName": "encumbrance.sourcePurchaseOrderId", "targetTable": "order_transaction_summaries", "tOps": "ADD" }, { "fieldName": "fiscalYearId", "targetTable": "fiscal_year", "tOps": "ADD" }, { "fieldName": "fromFundId", "targetTable": "fund", "tOps": "ADD" }, { "fieldName": "expenseClassId", "targetTable": "expense_class" } ], "uniqueIndex": [ { "fieldName": "temp_order_tx", "multiFieldNames": "amount, fromFundId, encumbrance.sourcePurchaseOrderId, encumbrance.sourcePoLineId, encumbrance.initialAmountEncumbered, encumbrance.status, expenseClassId", "tOps": "ADD" } ] }, { "tableName": "invoice_transaction_summaries", "fromModuleVersion": "mod-finance-storage-4.2.1" }, { "tableName": "temporary_invoice_transactions", "fromModuleVersion": "mod-finance-storage-6.0.0", "uniqueIndex": [ { "fieldName": "temp_invoice_tx", "sqlExpression": "concat_space_sql(lower(f_unaccent(jsonb->>'amount')) , lower(f_unaccent(jsonb->>'fromFundId')) , lower(f_unaccent(jsonb->>'sourceInvoiceId')) , lower(f_unaccent(jsonb->>'sourceInvoiceLineId')) , lower(f_unaccent(jsonb->>'toFundId')) , lower(f_unaccent(jsonb->>'transactionType')), lower(f_unaccent(jsonb->>'expenseClassId')))", "tOps": "ADD" } ], "foreignKeys": [ { "fieldName": "sourceInvoiceId", "targetTable": "invoice_transaction_summaries", "tOps": "ADD" }, { "fieldName": "paymentEncumbranceId", "targetTable": "transaction", "tOps": "ADD" }, { "fieldName": "fromFundId", "targetTable": "fund", "tOps": "ADD" }, { "fieldName": "toFundId", "targetTable": "fund", "tOps": "ADD" }, { "fieldName": "fiscalYearId", "targetTable": "fiscal_year", "tOps": "ADD" }, { "fieldName": "expenseClassId", "targetTable": "expense_class" } ] }, { "tableName": "temporary_invoice_payments", "fromModuleVersion": "mod-finance-storage-4.2.1", "mode": "delete", "auditingTableName": "NOT_EXISTING_AUDITING_TABLE" }, { "tableName": "ledger_fiscal_year_rollover", "fromModuleVersion": "mod-finance-storage-7.0.0", "withMetadata": true, "foreignKeys": [ { "fieldName": "ledgerId", "targetTable": "ledger" }, { "fieldName": "fromFiscalYearId", "targetTable": "fiscal_year" }, { "fieldName": "toFiscalYearId", "targetTable": "fiscal_year" } ], "uniqueIndex": [ { "fieldName": "ledgerId_fromFiscalYearId", "multiFieldNames": "ledgerId, fromFiscalYearId", "tOps": "ADD" } ] }, { "tableName": "ledger_fiscal_year_rollover_progress", "fromModuleVersion": "mod-finance-storage-7.0.0", "withMetadata": true, "index": [ { "fieldName": "overallRolloverStatus", "tOps": "ADD", "caseSensitive": false, "removeAccents": true } ], "uniqueIndex": [ { "fieldName": "ledgerRolloverId", "tOps": "ADD" } ], "foreignKeys": [ { "fieldName": "ledgerRolloverId", "targetTable": "ledger_fiscal_year_rollover", "tableAlias": "ledgerFYROProgress", "targetTableAlias": "ledgerFYRO", "tOps": "ADD" } ] }, { "tableName": "ledger_fiscal_year_rollover_error", "fromModuleVersion": "mod-finance-storage-7.0.0", "withMetadata": true, "index": [ { "fieldName": "details.purchaseOrderId", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "details.fundId", "tOps": "ADD", "caseSensitive": false, "removeAccents": true }, { "fieldName": "errorType" } ], "foreignKeys": [ { "fieldName": "ledgerRolloverId", "targetTable": "ledger_fiscal_year_rollover", "tableAlias": "ledgerFYROError", "targetTableAlias": "ledgerFYRO", "tOps": "ADD" } ] } ] } $mainftl$); 2021-10-01T17:40:19,310 INFO [vert.x-eventloop-thread-1] TenantReferenceAPI postTenant 2021-10-01T17:40:19,329 INFO [vert.x-eventloop-thread-1] TenantAPI job 2046aaa6-47f7-4b10-9764-ce36207a2b09 completed 2021-10-01T17:40:19,332 INFO [vert.x-eventloop-thread-1] RestRouting invoking getTenantByOperationId 2021-10-01T17:40:19,336 INFO [vert.x-eventloop-thread-1] LogUtil 127.0.0.1:40260 GET /_/tenant/2046aaa6-47f7-4b10-9764-ce36207a2b09 null HTTP_1_1 200 283 4 tid=diku OK 2021-10-01T17:40:19,342 INFO [vert.x-eventloop-thread-1] RestRouting invoking deleteTenantByOperationId 2021-10-01T17:40:19,342 INFO [vert.x-eventloop-thread-1] TenantReferenceAPI deleteTenant 2021-10-01T17:40:19,348 INFO [vert.x-eventloop-thread-1] LoadConfs File does not exist: /postgres-conf.json 2021-10-01T17:40:19,348 INFO [vert.x-eventloop-thread-1] LoadConfs Resource has been loaded: /postgres-conf.json 2021-10-01T17:40:19,348 INFO [vert.x-eventloop-thread-1] PostgresClient Using schema: diku 2021-10-01T17:40:19,348 INFO [vert.x-eventloop-thread-1] PostgresClient postgreSQLClientConfig = {"host":"localhost","port":5432,"database":"okapi_modules","username":"diku_mod_finance_storage","password":"...","postgres_tester":false} 2021-10-01T17:40:19,353 INFO [vert.x-eventloop-thread-1] LogUtil 127.0.0.1:40260 DELETE /_/tenant/2046aaa6-47f7-4b10-9764-ce36207a2b09 null HTTP_1_1 204 0 10 tid=diku No Content