Distinguish CreateTime and StartTime in StepExecution

- Add field createTime for StepExecution.
- Add column create_time for batch_step_execution and make start_time default null.
- Make getLastStepExecution order by createTime instead of startTime.
- Add migration scripts for 5.0

Resolves #4049
This commit is contained in:
Marvin Deng
2022-02-08 14:41:15 +08:00
committed by Mahmoud Ben Hassine
parent a19eefa7fd
commit 464985bf0a
26 changed files with 96 additions and 41 deletions

View File

@@ -50,7 +50,8 @@ CREATE TABLE PREFIX_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 ,

View File

@@ -45,7 +45,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 ,