From 8bf6211d7a17a7ee8b3ba3afa76d005cccd01ca9 Mon Sep 17 00:00:00 2001 From: Evan Cordell Date: Wed, 1 Feb 2023 11:02:55 -0500 Subject: [PATCH] fix migration for postgres v1.14.0-v1.16.1 --- default-operator-config.yaml | 14 +++++++++----- tools/generate-update-graph/main.go | 10 +++++----- 2 files changed, 14 insertions(+), 10 deletions(-) diff --git a/default-operator-config.yaml b/default-operator-config.yaml index 4a7a55b1..0be25c60 100644 --- a/default-operator-config.yaml +++ b/default-operator-config.yaml @@ -148,22 +148,23 @@ channels: - v1.16.1 metadata: datastore: postgres + default: "true" name: stable nodes: - id: v1.16.1 - migration: drop-id-constraints + migration: drop-bigserial-ids tag: v1.16.1 - id: v1.16.0 - migration: drop-id-constraints + migration: drop-bigserial-ids tag: v1.16.0 - id: v1.15.0 - migration: drop-id-constraints + migration: drop-bigserial-ids tag: v1.15.0 - id: v1.14.1 - migration: drop-id-constraints + migration: drop-bigserial-ids tag: v1.14.1 - id: v1.14.0 - migration: drop-id-constraints + migration: drop-bigserial-ids tag: v1.14.0 - id: v1.14.0-phase2 migration: add-xid-constraints @@ -408,6 +409,7 @@ channels: - v1.16.1 metadata: datastore: cockroachdb + default: "true" name: stable nodes: - id: v1.16.1 @@ -555,6 +557,7 @@ channels: - v1.16.1 metadata: datastore: mysql + default: "true" name: stable nodes: - id: v1.16.1 @@ -786,6 +789,7 @@ channels: - v1.16.1 metadata: datastore: spanner + default: "true" name: stable nodes: - id: v1.16.1 diff --git a/tools/generate-update-graph/main.go b/tools/generate-update-graph/main.go index a298b5d5..2c59fdf8 100644 --- a/tools/generate-update-graph/main.go +++ b/tools/generate-update-graph/main.go @@ -64,11 +64,11 @@ func main() { func postgresChannel() updates.Channel { releases := []updates.State{ - {ID: "v1.16.1", Tag: "v1.16.1", Migration: "drop-id-constraints"}, - {ID: "v1.16.0", Tag: "v1.16.0", Migration: "drop-id-constraints"}, - {ID: "v1.15.0", Tag: "v1.15.0", Migration: "drop-id-constraints"}, - {ID: "v1.14.1", Tag: "v1.14.1", Migration: "drop-id-constraints"}, - {ID: "v1.14.0", Tag: "v1.14.0", Migration: "drop-id-constraints"}, + {ID: "v1.16.1", Tag: "v1.16.1", Migration: "drop-bigserial-ids"}, + {ID: "v1.16.0", Tag: "v1.16.0", Migration: "drop-bigserial-ids"}, + {ID: "v1.15.0", Tag: "v1.15.0", Migration: "drop-bigserial-ids"}, + {ID: "v1.14.1", Tag: "v1.14.1", Migration: "drop-bigserial-ids"}, + {ID: "v1.14.0", Tag: "v1.14.0", Migration: "drop-bigserial-ids"}, {ID: "v1.14.0-phase2", Tag: "v1.14.0", Migration: "add-xid-constraints", Phase: "write-both-read-new"}, {ID: "v1.14.0-phase1", Tag: "v1.14.0", Migration: "add-xid-columns", Phase: "write-both-read-old"}, {ID: "v1.13.0", Tag: "v1.13.0", Migration: "add-ns-config-id"},