diff --git a/schema/postgres/cadence/versioned/v0.6/executions_workflow_id.sql b/schema/postgres/cadence/versioned/v0.6/extend_workflow_id_length.sql similarity index 100% rename from schema/postgres/cadence/versioned/v0.6/executions_workflow_id.sql rename to schema/postgres/cadence/versioned/v0.6/extend_workflow_id_length.sql diff --git a/schema/postgres/cadence/versioned/v0.6/manifest.json b/schema/postgres/cadence/versioned/v0.6/manifest.json index afd8db7ee6e..131f2289d92 100644 --- a/schema/postgres/cadence/versioned/v0.6/manifest.json +++ b/schema/postgres/cadence/versioned/v0.6/manifest.json @@ -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" ] } diff --git a/schema/postgres/version.go b/schema/postgres/version.go index f56ba797380..050de1a80de 100644 --- a/schema/postgres/version.go +++ b/schema/postgres/version.go @@ -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" diff --git a/schema/postgres/visibility/versioned/v0.8/extend_workflow_id_length.sql b/schema/postgres/visibility/versioned/v0.8/extend_workflow_id_length.sql new file mode 100644 index 00000000000..ab272e0c9af --- /dev/null +++ b/schema/postgres/visibility/versioned/v0.8/extend_workflow_id_length.sql @@ -0,0 +1 @@ +ALTER TABLE executions_visibility ALTER workflow_id TYPE TEXT; diff --git a/schema/postgres/visibility/versioned/v0.8/manifest.json b/schema/postgres/visibility/versioned/v0.8/manifest.json new file mode 100644 index 00000000000..a31b9548c19 --- /dev/null +++ b/schema/postgres/visibility/versioned/v0.8/manifest.json @@ -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" + ] +} \ No newline at end of file