From 4d8622fedcd54308c2e3a402a54f9f6eb751c9ce Mon Sep 17 00:00:00 2001 From: hackerman <3372410+aeneasr@users.noreply.github.com> Date: Fri, 9 Jun 2023 11:46:28 +0200 Subject: [PATCH] Revert "fix: cockroach migration error when hydra upgrades v2 (#3536)" (#3542) This reverts commit be6e005e8eb245d3844eba133d1f78f9e21b0d0d. --- ...004110003000000_change_client_primary_key.cockroach.up.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/persistence/sql/migrations/20211004110003000000_change_client_primary_key.cockroach.up.sql b/persistence/sql/migrations/20211004110003000000_change_client_primary_key.cockroach.up.sql index a39fdf4474a..fe7cc1aa68c 100644 --- a/persistence/sql/migrations/20211004110003000000_change_client_primary_key.cockroach.up.sql +++ b/persistence/sql/migrations/20211004110003000000_change_client_primary_key.cockroach.up.sql @@ -1,2 +1,2 @@ -ALTER TABLE hydra_client DROP CONSTRAINT IF EXISTS "primary"; -ALTER TABLE hydra_client ADD CONSTRAINT "hydra_client_pkey" IF NOT EXISTS PRIMARY KEY (pk); +ALTER TABLE hydra_client DROP CONSTRAINT "primary"; +ALTER TABLE hydra_client ADD CONSTRAINT "hydra_client_pkey" PRIMARY KEY (pk);