drop table if exists mmt_ods.mmt_config; create table mmt_ods.mmt_config ( syspk serial primary key, file_format varchar(100), sheet_format varchar(100), target_table varchar(100), F1_source varchar(100), F1_modified varchar(100), row_number_start int, row_previous_number int, row_read_end int, run_time timestamp, action varchar(50), run_date date null, active_status int default 0 ); create unique index i_file_format_mmt_config on mmt_ods.mmt_config(file_format,sheet_format,F1_modified); DROP TABLE if exists fw_DB_errors; CREATE TABLE fw_DB_Errors ( syspk bigserial NOT NULL, client_id int, function_id int, user_id int, user_name text, error_procedure text, error_state text, error_message text, error_detail text, error_hint text, error_context text, error_timestamp timestamp default now(), CONSTRAINT fw_DB_error_pkey PRIMARY KEY (syspk) );