Skip to content

Commit

Permalink
change workflow_id from varchar 255 to text in cadence_visibility d…
Browse files Browse the repository at this point in the history
…atabasae
  • Loading branch information
samuel-lindgren committed Nov 26, 2024
1 parent 7ec4149 commit 62d6382
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 3 deletions.
4 changes: 2 additions & 2 deletions schema/postgres/cadence/versioned/v0.6/manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"CurrVersion": "0.6",
"MinCompatibleVersion": "0.6",
"Description": "Update type of workflow_id to text to remove length restriction",
"Description": "update type of workflow_id to text to remove length restriction",
"SchemaUpdateCqlFiles": [
"executions_workflow_id.sql"
"extend_workflow_id_length.sql"
]
}
2 changes: 1 addition & 1 deletion schema/postgres/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ const Version = "0.6"

// VisibilityVersion is the Postgres visibility database release version
// Cadence supports both MySQL and Postgres officially, so upgrade should be perform for both MySQL and Postgres
const VisibilityVersion = "0.7"
const VisibilityVersion = "0.8"
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE executions_visibility ALTER workflow_id TYPE TEXT;
8 changes: 8 additions & 0 deletions schema/postgres/visibility/versioned/v0.8/manifest.json
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"
]
}

0 comments on commit 62d6382

Please sign in to comment.