Skip to content

Commit 786bbb5

Browse files
chore(kms-connector): fix db-migration (#1261) (#1274)
1 parent d0e0b93 commit 786bbb5

File tree

1 file changed

+2
-11
lines changed

1 file changed

+2
-11
lines changed

kms-connector/connector-db/migrations/20250826111757_keygen_crs.sql

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,8 @@ DROP TABLE IF EXISTS preprocess_kskgen_requests;
1313
-- Updating/creating PrepKeygen tables/triggers --
1414
--------------------------------------------------------
1515
-- Create new ParamsType and KeyType enums
16-
DO $$ BEGIN
17-
CREATE TYPE params_type AS ENUM ('Default', 'Test');
18-
EXCEPTION
19-
WHEN duplicate_object THEN null;
20-
END $$;
21-
22-
DO $$ BEGIN
23-
CREATE TYPE key_type AS ENUM ('Server', 'Public');
24-
EXCEPTION
25-
WHEN duplicate_object THEN null;
26-
END $$;
16+
CREATE TYPE params_type AS ENUM ('Default', 'Test');
17+
CREATE TYPE key_type AS ENUM ('Server', 'Public');
2718

2819
CREATE TABLE IF NOT EXISTS prep_keygen_requests (
2920
prep_keygen_id BYTEA NOT NULL,

0 commit comments

Comments
 (0)