All Downloads are FREE. Search and download functionalities are using the official Maven repository.

db.migration.postgresql.V1_0_0__init.sql Maven / Gradle / Ivy

CREATE TABLE job (
    id VARCHAR(128) PRIMARY KEY,
    version INTEGER,
    name VARCHAR(256) NOT NULL UNIQUE,
    content TEXT
);

CREATE TABLE connector (
    id VARCHAR(128) PRIMARY KEY,
    version INTEGER,
    name VARCHAR(256) NOT NULL UNIQUE,
    content TEXT
);

CREATE TABLE job_execution (
    id SERIAL PRIMARY KEY,
    version INTEGER,
    job_id VARCHAR(128) NOT NULL,
    state VARCHAR(64) NOT NULL,
    content TEXT
);

CREATE TABLE persistent_value (
    id SERIAL PRIMARY KEY,
    version INTEGER,
    job_id VARCHAR(128) NOT NULL,
    created TIMESTAMP NOT NULL,
    content VARCHAR NOT NULL
);
CREATE UNIQUE INDEX unique_persistent_value ON persistent_value (job_id, content);

CREATE TABLE job_connector_reference (
    job_id VARCHAR(128) NOT NULL,
    connector_id VARCHAR(128) NOT NULL
);
CREATE UNIQUE INDEX unique_job_connector_reference ON job_connector_reference (job_id, connector_id);




© 2015 - 2024 Weber Informatics LLC | Privacy Policy