Skip to content

Commit 8a1c241

Browse files
committed
Drop no longer needed proc and drop
1 parent 696bfc3 commit 8a1c241

1 file changed

Lines changed: 0 additions & 21 deletions

File tree

cluster/resources/schemas/dbscripts/postgresql/cluster-15.20-15.21.sql

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,3 @@ CREATE TABLE cluster.clusterJobs (
3636

3737
CONSTRAINT PK_clusterJobs PRIMARY KEY (rowId)
3838
);
39-
40-
41-
CREATE FUNCTION cluster.handleUpgrade() RETURNS VOID AS $$
42-
DECLARE
43-
BEGIN
44-
IF EXISTS ( SELECT schema_name FROM information_schema.schemata WHERE schema_name = 'htcondorconnector' )
45-
THEN
46-
INSERT INTO cluster.clusterJobs (clusterId, jobId, hasStarted, status, location, activeTaskId, lastStatusCheck, container, createdBy, created, modifiedBy, modified)
47-
SELECT condorId as clusterId, jobId, hasStarted, status, location, activeTaskId, lastStatusCheck, container, createdBy, created, modifiedBy, modified
48-
FROM htcondorconnector.condorJobs;
49-
END IF;
50-
END;
51-
$$ LANGUAGE plpgsql;
52-
53-
SELECT cluster.handleUpgrade();
54-
55-
DROP FUNCTION cluster.handleUpgrade();
56-
57-
SELECT core.fn_dropifexists('*', 'htcondorconnector', 'schema', null);
58-
59-

0 commit comments

Comments
 (0)