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 (remaining DBs - MySQL, SQL Server)
- Loading branch information
Showing
9 changed files
with
143 additions
and
1,018 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
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 INTEGER 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 BIGINT 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; |
Oops, something went wrong.