     version        int          not null,
     latest_version int          not null default 0,
     json_data      text         not null
-);
-
-create table meta_event_handler
+    );
+
+create table if not exists meta_event_handler
 (
     id          bigserial primary key,
     created_on  timestamp    not null default now(),

    PRIMARY KEY (id),
    UNIQUE (error_code),
    UNIQUE (lookup, workflow_name)
);

CREATE sequence meta_priority_id_seq START WITH 1 increment BY 1 no maxvalue no minvalue cache 20 no cycle;

CREATE TABLE meta_priority
(
    id           BIGINT                          DEFAULT nextval('meta_priority_id_seq'::regclass) NOT NULL,
    created_on   timestamp              not null default now(),

create table if not exists log4j_logs
(
    id       bigserial primary key,
    log_time timestamp,
