-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add migration script for SQLITE - Update the script of SAP HANA with the new column
- Loading branch information
1 parent
464985b
commit a722cd2
Showing
3 changed files
with
6 additions
and
2 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
...core/src/main/resources/org/springframework/batch/core/migration/5.0/migration-sqlite.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 |
---|---|---|
@@ -0,0 +1,4 @@ | ||
ALTER TABLE BATCH_STEP_EXECUTION ADD CREATE_TIME TIMESTAMP NOT NULL DEFAULT '1970-01-01 00:00:00'; | ||
-- ALTER TABLE BATCH_STEP_EXECUTION ALTER COLUMN START_TIME DROP NOT NULL; | ||
-- ALTER COLUMN is not supported in SQLITE: https://www.sqlite.org/lang_altertable.html | ||
-- There are several ways to drop the 'NOT NULL' constraint on START_TIME, this is left to the user. |
1 change: 0 additions & 1 deletion
1
...core/src/main/resources/org/springframework/batch/core/migration/5.0/migration-sybase.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,2 @@ | ||
ALTER TABLE BATCH_STEP_EXECUTION ADD CREATE_TIME DATETIME DEFAULT '1970-01-01 00:00:00' NOT NULL; | ||
ALTER TABLE BATCH_STEP_EXECUTION MODIFY START_TIME DATETIME NULL; | ||
?? |
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