mirror of
https://github.com/coder/coder.git
synced 2025-07-09 11:45:56 +00:00
16 lines
291 B
PL/PgSQL
16 lines
291 B
PL/PgSQL
BEGIN;
|
|
|
|
-- drop any rows that aren't primary replicas
|
|
DELETE FROM replicas
|
|
WHERE "primary" = false;
|
|
|
|
ALTER TABLE replicas
|
|
DROP COLUMN "primary";
|
|
|
|
ALTER TABLE workspace_proxies
|
|
DROP CONSTRAINT workspace_proxies_region_id_unique,
|
|
DROP COLUMN region_id,
|
|
DROP COLUMN derp_enabled;
|
|
|
|
COMMIT;
|