-
Notifications
You must be signed in to change notification settings - Fork 805
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Align Postgres
workflow_id
Column with Cassandra (#6520)
* change `workflow_id` from varchar 255 to text in postgresql
- Loading branch information
1 parent
3579d66
commit e5e553f
Showing
8 changed files
with
51 additions
and
15 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
19 changes: 19 additions & 0 deletions
19
schema/postgres/cadence/versioned/v0.6/extend_workflow_id_length.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,19 @@ | ||
ALTER TABLE executions ALTER workflow_id TYPE text; | ||
|
||
ALTER TABLE current_executions ALTER workflow_id TYPE text; | ||
|
||
ALTER TABLE buffered_events ALTER workflow_id TYPE text; | ||
|
||
ALTER TABLE activity_info_maps ALTER workflow_id TYPE text; | ||
|
||
ALTER TABLE timer_info_maps ALTER workflow_id TYPE text; | ||
|
||
ALTER TABLE child_execution_info_maps ALTER workflow_id TYPE text; | ||
|
||
ALTER TABLE request_cancel_info_maps ALTER workflow_id TYPE text; | ||
|
||
ALTER TABLE signal_info_maps ALTER workflow_id TYPE text; | ||
|
||
ALTER TABLE buffered_replication_task_maps ALTER workflow_id TYPE text; | ||
|
||
ALTER TABLE signals_requested_sets ALTER workflow_id TYPE text; |
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,8 @@ | ||
{ | ||
"CurrVersion": "0.6", | ||
"MinCompatibleVersion": "0.6", | ||
"Description": "update type of workflow_id to text to remove length restriction", | ||
"SchemaUpdateCqlFiles": [ | ||
"extend_workflow_id_length.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
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
1 change: 1 addition & 0 deletions
1
schema/postgres/visibility/versioned/v0.8/extend_workflow_id_length.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 @@ | ||
ALTER TABLE executions_visibility ALTER workflow_id TYPE TEXT; |
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,8 @@ | ||
{ | ||
"CurrVersion": "0.8", | ||
"MinCompatibleVersion": "0.8", | ||
"Description": "update type of workflow_id to text to remove length restriction", | ||
"SchemaUpdateCqlFiles": [ | ||
"extend_workflow_id_length.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