Skip to content
This repository was archived by the owner on Nov 15, 2022. It is now read-only.

Commit baca5b4

Browse files
mukumawayaminikb
authored andcommitted
Fixes #21262 Jbatch db2 database creation script is incorrect (#21986)
1 parent 6d6e26c commit baca5b4

File tree

1 file changed

+2
-2
lines changed
  • appserver/batch/batch-database/src/main/resources/glassfish/lib/install/databases

1 file changed

+2
-2
lines changed

appserver/batch/batch-database/src/main/resources/glassfish/lib/install/databases/jsr352-db2.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,13 @@ CREATE TABLE STEPEXECUTIONINSTANCEDATA(
5151
);
5252

5353
CREATE TABLE JOBSTATUS (
54-
id BIGINT CONSTRAINT JOBSTATUS_PK PRIMARY KEY,
54+
id BIGINT CONSTRAINT JOBSTATUS_PK PRIMARY KEY NOT NULL,
5555
obj BLOB,
5656
CONSTRAINT JOBSTATUS_JOBINST_FK FOREIGN KEY (id) REFERENCES JOBINSTANCEDATA (jobinstanceid) ON DELETE CASCADE
5757
);
5858

5959
CREATE TABLE STEPSTATUS(
60-
id BIGINT CONSTRAINT STEPSTATUS_PK PRIMARY KEY,
60+
id BIGINT CONSTRAINT STEPSTATUS_PK PRIMARY KEY NOT NULL,
6161
obj BLOB,
6262
CONSTRAINT STEPSTATUS_STEPEXEC_FK FOREIGN KEY (id) REFERENCES STEPEXECUTIONINSTANCEDATA (stepexecid) ON DELETE CASCADE
6363
);

0 commit comments

Comments
 (0)