From 8a1c241fe0a7ce603ea222abd4e78dca81d1e2e0 Mon Sep 17 00:00:00 2001 From: Adam Rauch Date: Mon, 31 Aug 2026 10:35:08 -0700 Subject: [PATCH] Drop no longer needed proc and drop --- .../postgresql/cluster-15.20-15.21.sql | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/cluster/resources/schemas/dbscripts/postgresql/cluster-15.20-15.21.sql b/cluster/resources/schemas/dbscripts/postgresql/cluster-15.20-15.21.sql index 8dd75631c..8f7115729 100644 --- a/cluster/resources/schemas/dbscripts/postgresql/cluster-15.20-15.21.sql +++ b/cluster/resources/schemas/dbscripts/postgresql/cluster-15.20-15.21.sql @@ -36,24 +36,3 @@ CREATE TABLE cluster.clusterJobs ( CONSTRAINT PK_clusterJobs PRIMARY KEY (rowId) ); - - -CREATE FUNCTION cluster.handleUpgrade() RETURNS VOID AS $$ -DECLARE - BEGIN - IF EXISTS ( SELECT schema_name FROM information_schema.schemata WHERE schema_name = 'htcondorconnector' ) - THEN - INSERT INTO cluster.clusterJobs (clusterId, jobId, hasStarted, status, location, activeTaskId, lastStatusCheck, container, createdBy, created, modifiedBy, modified) - SELECT condorId as clusterId, jobId, hasStarted, status, location, activeTaskId, lastStatusCheck, container, createdBy, created, modifiedBy, modified - FROM htcondorconnector.condorJobs; - END IF; - END; -$$ LANGUAGE plpgsql; - -SELECT cluster.handleUpgrade(); - -DROP FUNCTION cluster.handleUpgrade(); - -SELECT core.fn_dropifexists('*', 'htcondorconnector', 'schema', null); - -