[jOOQ/jOOQ#9506] Update CHECK constraint and generated class

This commit is contained in:
Lukas Eder 2023-06-13 19:39:31 +02:00
parent d074b53ba2
commit 9d20ee8ab4
2 changed files with 2 additions and 2 deletions

View File

@ -136,7 +136,7 @@ class Changelog extends TableImpl<ChangelogRecord> {
@Override
public List<Check<ChangelogRecord>> getChecks() {
return Arrays.asList(
Internal.createCheck(this, DSL.name("JOOQ_MIGR_CHK1"), "\"STATUS\" IN('RUNNING', 'SUCCESS', 'FAILED')", true)
Internal.createCheck(this, DSL.name("JOOQ_MIGR_CHK1"), "\"STATUS\" IN('STARTING', 'REVERTING', 'MIGRATING', 'SUCCESS', 'FAILURE')", true)
);
}

View File

@ -10,7 +10,7 @@ CREATE TABLE jooq_migrations_changelog (
status VARCHAR(10) NOT NULL,
CONSTRAINT jooq_migr_pk PRIMARY KEY (id),
CONSTRAINT jooq_migr_chk1 CHECK (status IN ('RUNNING', 'SUCCESS', 'FAILED'))
CONSTRAINT jooq_migr_chk1 CHECK (status IN ('STARTING', 'REVERTING', 'MIGRATING', 'SUCCESS', 'FAILURE'))
);
CREATE INDEX jooq_migr_i1 ON jooq_migrations_changelog (migrated_at);