From 5067e420c6b9f45aa7801f6236025d0a08fbfead Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Thu, 8 Jan 2026 12:58:15 +0100 Subject: [PATCH] Remove leftover in the scheam from apalis --- .../migrations/20260108111542_remove_apalis.sql | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 crates/storage-pg/migrations/20260108111542_remove_apalis.sql diff --git a/crates/storage-pg/migrations/20260108111542_remove_apalis.sql b/crates/storage-pg/migrations/20260108111542_remove_apalis.sql new file mode 100644 index 000000000..e6e90fb47 --- /dev/null +++ b/crates/storage-pg/migrations/20260108111542_remove_apalis.sql @@ -0,0 +1,14 @@ +-- Copyright 2026 Element Creations Ltd. +-- +-- SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial +-- Please see LICENSE in the repository root for full details. + +-- We replaced apalis a while back but did not clean the database. This removes +-- everything related to apalis +DROP TRIGGER IF EXISTS notify_workers ON apalis.jobs; +DROP FUNCTION IF EXISTS apalis.notify_new_jobs(); +DROP FUNCTION IF EXISTS apalis.get_jobs(text, text, integer); +DROP FUNCTION IF EXISTS apalis.push_job(text, json, text, timestamp with time zone, integer); +DROP TABLE IF EXISTS apalis.jobs; +DROP TABLE IF EXISTS apalis.workers; +DROP SCHEMA IF EXISTS apalis;