CREATE TABLE hex_upgrade_schedule_history (
    SCHEDULE_RUN_ID          NUMBER(18, 0),
    PROCESS_ID               NUMBER(18, 0),
    SCHEDULE_ID              NUMBER(18, 0),
    START_DATE               TIMESTAMP(6) ,
    END_DATE                 TIMESTAMP(6) ,
    NEXT_SCHEDULE_DATE       DATE         ,
    PROCESS_STATUS           VARCHAR2(120),
    PARENT_REQ_ID            NUMBER(18, 0),
    SPECIAL_STATUS_FLAG      VARCHAR2(120),
    ENTERPRISE_ID            NUMBER(18, 0)    NOT NULL,
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    LAST_RUN_RELEASE         VARCHAR2(120),
    SCHEDULE_RUN_ID          NUMBER(18, 0),
    PROCESS_ID               NUMBER(18, 0),
    SCHEDULE_ID              NUMBER(18, 0),
    START_DATE               TIMESTAMP(6) ,
    END_DATE                 TIMESTAMP(6) ,
    NEXT_SCHEDULE_DATE       DATE         ,
    PROCESS_STATUS           VARCHAR2(120),
    PARENT_REQ_ID            NUMBER(18, 0),
    SPECIAL_STATUS_FLAG      VARCHAR2(120),
    ENTERPRISE_ID            NUMBER(18, 0)    NOT NULL,
    OBJECT_VERSION_NUMBER    NUMBER(9, 0)     NOT NULL,
    CREATED_BY               VARCHAR2(256)    NOT NULL,
    CREATION_DATE            TIMESTAMP(6)     NOT NULL,
    LAST_UPDATED_BY          VARCHAR2(256)    NOT NULL,
    LAST_UPDATE_DATE         TIMESTAMP(6)     NOT NULL,
    LAST_UPDATE_LOGIN        VARCHAR2(128),
    LAST_RUN_RELEASE         VARCHAR2(120),
    CONSTRAINT pk_hex_upgrade_schedule_history PRIMARY KEY (SCHEDULE_RUN_ID, SCHEDULE_RUN_ID)
);
