2020-10-02 16:21:51 +02:00
|
|
|
-- table manipulations need to be in seperate transactions
|
|
|
|
-- (see: https://github.com/cockroachdb/cockroach/issues/13380#issuecomment-306560448)
|
|
|
|
|
|
|
|
BEGIN;
|
2020-09-17 08:49:33 +02:00
|
|
|
ALTER TABLE management.machine_keys DROP COLUMN IF EXISTS public_key;
|
2020-10-02 16:21:51 +02:00
|
|
|
COMMIT;
|
|
|
|
|
|
|
|
BEGIN;
|
2020-09-17 08:49:33 +02:00
|
|
|
ALTER TABLE management.machine_keys ADD COLUMN public_key BYTES;
|
2020-10-02 16:21:51 +02:00
|
|
|
COMMIT;
|
2020-09-17 08:49:33 +02:00
|
|
|
|
2020-10-02 16:21:51 +02:00
|
|
|
BEGIN;
|
2020-09-17 08:49:33 +02:00
|
|
|
ALTER TABLE auth.machine_keys DROP COLUMN IF EXISTS public_key;
|
2020-10-02 16:21:51 +02:00
|
|
|
COMMIT;
|
|
|
|
|
|
|
|
BEGIN;
|
|
|
|
ALTER TABLE auth.machine_keys ADD COLUMN public_key BYTES;
|
|
|
|
COMMIT;
|