From 0ef523ba773ebb6fe3ee536683c70de5130ca67e Mon Sep 17 00:00:00 2001 From: irenarindos Date: Wed, 11 May 2022 12:30:30 -0400 Subject: [PATCH] Remove column cascade --- .../oss/postgres/99/01_worker_controller_tables.up.sql | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/internal/db/schema/migrations/oss/postgres/99/01_worker_controller_tables.up.sql b/internal/db/schema/migrations/oss/postgres/99/01_worker_controller_tables.up.sql index 76ff37b0ba..b213b451b9 100644 --- a/internal/db/schema/migrations/oss/postgres/99/01_worker_controller_tables.up.sql +++ b/internal/db/schema/migrations/oss/postgres/99/01_worker_controller_tables.up.sql @@ -68,13 +68,15 @@ create table server_worker_tag ( -- Aaand drop server_tag drop table server_tag; --- Update session table to use worker_id instead of server_id +-- Update session table to use worker_id instead of server_id, drop view first because of dependency on server type +drop view session_list; + alter table session drop constraint session_server_id_fkey; drop trigger update_version_column on session; alter table session - drop column server_type cascade; + drop column server_type; alter table session rename column server_id to worker_id; @@ -114,8 +116,6 @@ alter table job_run on update cascade; -- Replaces the view created in 9/01 to include worker id instead of server id and server type -drop view if exists session_list; - create view session_list as select