Skip to content

Commit

Permalink
remove NOT NULL constraint for event_id column
Browse files Browse the repository at this point in the history
  • Loading branch information
CriMDev97 committed Nov 2, 2023
1 parent 9f6dec7 commit 2cc8c47
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions src/test/resources/schema-h2.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 2cc8c47

Please sign in to comment.