Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix non-nullable columns in MySQL migration for Spring Batch 4.3
Issue #4145
- Loading branch information
1 parent
f6fc7c7
commit 6b51408
Showing
1 changed file
with
13 additions
and
3 deletions.
There are no files selected for viewing
16 changes: 13 additions & 3 deletions
16
...-core/src/main/resources/org/springframework/batch/core/migration/4.3/migration-mysql.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,13 @@ | ||
ALTER TABLE BATCH_JOB_EXECUTION MODIFY CREATE_TIME DATETIME(6), MODIFY START_TIME DATETIME(6), MODIFY END_TIME DATETIME(6), MODIFY LAST_UPDATED DATETIME(6); | ||
ALTER TABLE BATCH_JOB_EXECUTION_PARAMS MODIFY DATE_VAL DATETIME(6); | ||
ALTER TABLE BATCH_STEP_EXECUTION MODIFY START_TIME DATETIME(6), MODIFY END_TIME DATETIME(6), MODIFY LAST_UPDATED DATETIME(6); | ||
ALTER TABLE BATCH_JOB_EXECUTION | ||
MODIFY CREATE_TIME DATETIME(6) NOT NULL, | ||
MODIFY START_TIME DATETIME(6), | ||
MODIFY END_TIME DATETIME(6), | ||
MODIFY LAST_UPDATED DATETIME(6); | ||
|
||
ALTER TABLE BATCH_JOB_EXECUTION_PARAMS | ||
MODIFY DATE_VAL DATETIME(6); | ||
|
||
ALTER TABLE BATCH_STEP_EXECUTION | ||
MODIFY START_TIME DATETIME(6) NOT NULL, | ||
MODIFY END_TIME DATETIME(6), | ||
MODIFY LAST_UPDATED DATETIME(6); |