File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
spring-batch-core/src/main/resources/org/springframework/batch/core Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change
1
+ ALTER TABLE BATCH_STEP_EXECUTION ADD CREATE_TIME TIMESTAMP NOT NULL DEFAULT ' 1970-01-01 00:00:00' ;
2
+ -- ALTER TABLE BATCH_STEP_EXECUTION ALTER COLUMN START_TIME DROP NOT NULL;
3
+ -- ALTER COLUMN is not supported in SQLITE: https://www.sqlite.org/lang_altertable.html
4
+ -- There are several ways to drop the 'NOT NULL' constraint on START_TIME, this is left to the user.
Original file line number Diff line number Diff line change 1
1
ALTER TABLE BATCH_STEP_EXECUTION ADD CREATE_TIME DATETIME DEFAULT ' 1970-01-01 00:00:00' NOT NULL ;
2
2
ALTER TABLE BATCH_STEP_EXECUTION MODIFY START_TIME DATETIME NULL ;
3
- ??
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ CREATE TABLE BATCH_STEP_EXECUTION (
41
41
VERSION BIGINT NOT NULL ,
42
42
STEP_NAME VARCHAR (100 ) NOT NULL ,
43
43
JOB_EXECUTION_ID BIGINT NOT NULL ,
44
- START_TIME TIMESTAMP NOT NULL ,
44
+ CREATE_TIME TIMESTAMP NOT NULL ,
45
+ START_TIME TIMESTAMP DEFAULT NULL ,
45
46
END_TIME TIMESTAMP DEFAULT NULL ,
46
47
STATUS VARCHAR (10 ) ,
47
48
COMMIT_COUNT BIGINT ,
You can’t perform that action at this time.
0 commit comments