diff options
author | Patrick Cloke <patrickc@matrix.org> | 2023-11-09 14:46:48 -0500 |
---|---|---|
committer | Patrick Cloke <patrickc@matrix.org> | 2023-11-09 14:46:48 -0500 |
commit | ff40f22a236a88f08e0d587e6a0915c5e4ca1d7d (patch) | |
tree | f62d80eeb9a8f8d6a414f27e4949e828ac0410b8 | |
parent | Merge remote-tracking branch 'origin/develop' into clokep/psycopg3 (diff) | |
download | synapse-ff40f22a236a88f08e0d587e6a0915c5e4ca1d7d.tar.xz |
Back out unneeded changes.
-rw-r--r-- | synapse/storage/schema/main/delta/68/05partial_state_rooms_triggers.py | 9 |
1 files 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$ |