From ff40f22a236a88f08e0d587e6a0915c5e4ca1d7d Mon Sep 17 00:00:00 2001 From: Patrick Cloke Date: Thu, 9 Nov 2023 14:46:48 -0500 Subject: [PATCH] Back out unneeded changes. --- .../main/delta/68/05partial_state_rooms_triggers.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/synapse/storage/schema/main/delta/68/05partial_state_rooms_triggers.py b/synapse/storage/schema/main/delta/68/05partial_state_rooms_triggers.py index f3efe4704c..9210026dde 100644 --- a/synapse/storage/schema/main/delta/68/05partial_state_rooms_triggers.py +++ b/synapse/storage/schema/main/delta/68/05partial_state_rooms_triggers.py @@ -19,12 +19,7 @@ This migration adds triggers to the partial_state_events tables to enforce uniqu Triggers cannot be expressed in .sql files, so we have to use a separate file. """ from synapse.storage.database import LoggingTransaction -from synapse.storage.engines import ( - BaseDatabaseEngine, - PostgresEngine, - PsycopgEngine, - Sqlite3Engine, -) +from synapse.storage.engines import BaseDatabaseEngine, PostgresEngine, Sqlite3Engine def run_create(cur: LoggingTransaction, database_engine: BaseDatabaseEngine) -> None: @@ -48,7 +43,7 @@ def run_create(cur: LoggingTransaction, database_engine: BaseDatabaseEngine) -> END; """ ) - elif isinstance(database_engine, (PostgresEngine, PsycopgEngine)): + elif isinstance(database_engine, PostgresEngine): cur.execute( """ CREATE OR REPLACE FUNCTION check_partial_state_events() RETURNS trigger AS $BODY$