mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
18 lines
468 B
PL/PgSQL
18 lines
468 B
PL/PgSQL
-- table manipulations need to be in seperate transactions
|
|
-- (see: https://github.com/cockroachdb/cockroach/issues/13380#issuecomment-306560448)
|
|
|
|
BEGIN;
|
|
ALTER TABLE management.machine_keys DROP COLUMN IF EXISTS public_key;
|
|
COMMIT;
|
|
|
|
BEGIN;
|
|
ALTER TABLE management.machine_keys ADD COLUMN public_key BYTES;
|
|
COMMIT;
|
|
|
|
BEGIN;
|
|
ALTER TABLE auth.machine_keys DROP COLUMN IF EXISTS public_key;
|
|
COMMIT;
|
|
|
|
BEGIN;
|
|
ALTER TABLE auth.machine_keys ADD COLUMN public_key BYTES;
|
|
COMMIT; |