Skip to content

Commit

Permalink
Refine contribution #4099
Browse files Browse the repository at this point in the history
- Add migration script for SQLITE
- Update the script of SAP HANA with the new column
  • Loading branch information
fmbenhassine committed Apr 27, 2022
1 parent 464985b commit a722cd2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
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.
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;
??
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ CREATE TABLE BATCH_STEP_EXECUTION (
VERSION BIGINT NOT NULL,
STEP_NAME VARCHAR(100) NOT NULL,
JOB_EXECUTION_ID BIGINT NOT NULL,
START_TIME TIMESTAMP NOT NULL ,
CREATE_TIME TIMESTAMP NOT NULL ,
START_TIME TIMESTAMP DEFAULT NULL ,
END_TIME TIMESTAMP DEFAULT NULL ,
STATUS VARCHAR(10) ,
COMMIT_COUNT BIGINT ,
Expand Down

0 comments on commit a722cd2

Please sign in to comment.