Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Quartz and Activiti upgrade scripts (PostgreSQL)
- Loading branch information
Showing
2 changed files
with
48 additions
and
1 deletion.
There are no files selected for viewing
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,47 @@ | ||
ALTER TABLE m_object ADD lifecycleState VARCHAR(255); | ||
|
||
CREATE INDEX iObjectLifecycleState ON m_object (lifecycleState); | ||
|
||
ALTER TABLE m_assignment ADD lifecycleState VARCHAR(255); | ||
|
||
CREATE TABLE m_assignment_policy_situation ( | ||
assignment_id INT4 NOT NULL, | ||
assignment_oid VARCHAR(36) NOT NULL, | ||
policySituation VARCHAR(255) | ||
); | ||
|
||
CREATE TABLE m_focus_policy_situation ( | ||
focus_oid VARCHAR(36) NOT NULL, | ||
policySituation VARCHAR(255) | ||
); | ||
|
||
ALTER TABLE m_assignment_policy_situation | ||
ADD CONSTRAINT fk_assignment_policy_situation | ||
FOREIGN KEY (assignment_id, assignment_oid) | ||
REFERENCES m_assignment; | ||
|
||
ALTER TABLE m_focus_policy_situation | ||
ADD CONSTRAINT fk_focus_policy_situation | ||
FOREIGN KEY (focus_oid) | ||
REFERENCES m_focus; | ||
|
||
CREATE TABLE m_audit_item ( | ||
changedItemPath VARCHAR(255) NOT NULL, | ||
record_id INT8 NOT NULL, | ||
PRIMARY KEY (changedItemPath, record_id) | ||
); | ||
|
||
ALTER TABLE m_audit_item | ||
ADD CONSTRAINT fk_audit_item | ||
FOREIGN KEY (record_id) | ||
REFERENCES m_audit_event; | ||
|
||
-- Quartz | ||
|
||
ALTER TABLE qrtz_fired_triggers ADD COLUMN SCHED_TIME BIGINT NOT NULL; | ||
|
||
-- Activiti | ||
|
||
update ACT_RU_EVENT_SUBSCR set PROC_DEF_ID_ = CONFIGURATION_ where EVENT_TYPE_ = 'message' and PROC_INST_ID_ is null and EXECUTION_ID_ is null; | ||
|
||
update ACT_GE_PROPERTY set VALUE_ = '5.22.0.0' where NAME_ = 'schema.version'; |
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