From 2cc8c47efb910a5ca063d8e8c7f8d22dfb6a2b50 Mon Sep 17 00:00:00 2001 From: "cristopher.moccia" Date: Thu, 2 Nov 2023 10:54:12 +0100 Subject: [PATCH] remove NOT NULL constraint for event_id column --- .../resources/db/changelog/changes/init_table/init_table.sql | 4 ++-- src/test/resources/schema-h2.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/db/changelog/changes/init_table/init_table.sql b/src/main/resources/db/changelog/changes/init_table/init_table.sql index fa33208..2c016e1 100644 --- a/src/main/resources/db/changelog/changes/init_table/init_table.sql +++ b/src/main/resources/db/changelog/changes/init_table/init_table.sql @@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS ESERVICE ( eservice_id VARCHAR (50) UNIQUE NOT NULL, producer_id VARCHAR (50) NOT NULL, descriptor_id VARCHAR (50) NOT NULL, - event_id BIGINT NOT NULL, + event_id BIGINT , state VARCHAR (50) NOT NULL, tmst_insert TIMESTAMP NOT NULL, tmst_last_edit TIMESTAMP, @@ -20,7 +20,7 @@ CREATE TABLE IF NOT EXISTS CONSUMER_ESERVICE ( consumer_id VARCHAR (50) NOT NULL, agreement_id VARCHAR (50) NOT NULL, descriptor_id VARCHAR (50) NOT NULL, - event_id BIGINT NOT NULL, + event_id BIGINT , state VARCHAR (50) NOT NULL, tmst_insert TIMESTAMP NOT NULL, tmst_last_edit TIMESTAMP, diff --git a/src/test/resources/schema-h2.sql b/src/test/resources/schema-h2.sql index 22fc606..806ac23 100644 --- a/src/test/resources/schema-h2.sql +++ b/src/test/resources/schema-h2.sql @@ -2,7 +2,7 @@ CREATE TABLE IF NOT EXISTS ESERVICE ( eservice_id VARCHAR (50) UNIQUE NOT NULL, producer_id VARCHAR (50) NOT NULL, descriptor_id VARCHAR (50) NOT NULL, - event_id BIGINT NOT NULL, + event_id BIGINT , state VARCHAR (50) NOT NULL, tmst_insert TIMESTAMP NOT NULL, tmst_last_edit TIMESTAMP, @@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS CONSUMER_ESERVICE ( consumer_id VARCHAR (50) NOT NULL, agreement_id VARCHAR (50) NOT NULL, descriptor_id VARCHAR (50) NOT NULL, - event_id BIGINT NOT NULL, + event_id BIGINT , state VARCHAR (50) NOT NULL, tmst_insert TIMESTAMP NOT NULL, tmst_last_edit TIMESTAMP,