-
Notifications
You must be signed in to change notification settings - Fork 886
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add parent workflow info to visibility schema (#5054)
<!-- Describe what has changed in this PR --> **What changed?** Add parent workflow info to visibibility schema <!-- Tell your future self why have you made these changes --> **Why?** <!-- How have you verified this change? Tested locally? Added a unit test? Checked in staging env? --> **How did you test it?** Unit tests <!-- Assuming the worst case, what can be broken when deploying this change to production? --> **Potential risks** No. <!-- Is this PR a hotfix candidate or require that a notification be sent to the broader community? (Yes/No) --> **Is hotfix candidate?** No.
- Loading branch information
1 parent
8bb1792
commit 595b9ce
Showing
7 changed files
with
26 additions
and
4 deletions.
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
4 changes: 4 additions & 0 deletions
4
schema/mysql/v8/visibility/versioned/v1.4/add_parent_workflow_info.sql
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,4 @@ | ||
ALTER TABLE executions_visibility ADD COLUMN parent_workflow_id VARCHAR(255) NULL; | ||
ALTER TABLE executions_visibility ADD COLUMN parent_run_id VARCHAR(255) NULL; | ||
CREATE INDEX by_parent_workflow_id ON executions_visibility (namespace_id, parent_workflow_id, (COALESCE(close_time, CAST('9999-12-31 23:59:59' AS DATETIME))) DESC, start_time DESC, run_id); | ||
CREATE INDEX by_parent_run_id ON executions_visibility (namespace_id, parent_run_id, (COALESCE(close_time, CAST('9999-12-31 23:59:59' AS DATETIME))) DESC, start_time DESC, run_id); |
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
{ | ||
"CurrVersion": "1.4", | ||
"MinCompatibleVersion": "0.1", | ||
"Description": "add execution duration and state transition count columns and indices", | ||
"Description": "add execution duration, state transition count and parent workflow info columns, and indices", | ||
"SchemaUpdateCqlFiles": [ | ||
"add_execution_duration.sql", | ||
"add_state_transition_count.sql" | ||
"add_state_transition_count.sql", | ||
"add_parent_workflow_info.sql" | ||
] | ||
} |
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
4 changes: 4 additions & 0 deletions
4
schema/postgresql/v12/visibility/versioned/v1.4/add_parent_workflow_info.sql
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,4 @@ | ||
ALTER TABLE executions_visibility ADD COLUMN parent_workflow_id VARCHAR(255) NULL; | ||
ALTER TABLE executions_visibility ADD COLUMN parent_run_id VARCHAR(255) NULL; | ||
CREATE INDEX by_parent_workflow_id ON executions_visibility (namespace_id, parent_workflow_id, (COALESCE(close_time, '9999-12-31 23:59:59')) DESC, start_time DESC, run_id); | ||
CREATE INDEX by_parent_run_id ON executions_visibility (namespace_id, parent_run_id, (COALESCE(close_time, '9999-12-31 23:59:59')) DESC, start_time DESC, run_id); |
5 changes: 3 additions & 2 deletions
5
schema/postgresql/v12/visibility/versioned/v1.4/manifest.json
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
{ | ||
"CurrVersion": "1.4", | ||
"MinCompatibleVersion": "0.1", | ||
"Description": "add execution duration and state transition count columns and indices", | ||
"Description": "add execution duration, state transition count and parent workflow info columns, and indices", | ||
"SchemaUpdateCqlFiles": [ | ||
"add_execution_duration.sql", | ||
"add_state_transition_count.sql" | ||
"add_state_transition_count.sql", | ||
"add_parent_workflow_info.sql" | ||
] | ||
} |
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