Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
H-Shay committed Jun 6, 2023
1 parent d69d109 commit b4cc31d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions synapse/storage/databases/state/bg_updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ def check_pg_column(txn: LoggingTransaction, table: str) -> list:
check if the column event_stream_ordering already exists
"""
check_sql = f"""
SELECT column_name FROM information_schema.columns
SELECT column_name FROM information_schema.columns
WHERE table_name = '{table}' and column_name = 'event_stream_ordering';
"""
txn.execute(check_sql)
Expand Down Expand Up @@ -641,7 +641,9 @@ def add_sqlite_triggers(txn: LoggingTransaction) -> None:
"""
)

await self.db_pool.runInteraction("add_sqlite_triggers", add_sqlite_triggers)
await self.db_pool.runInteraction(
"add_sqlite_triggers", add_sqlite_triggers
)
elif isinstance(self.database_engine, PostgresEngine):

def add_pg_triggers(txn: LoggingTransaction) -> None:
Expand Down Expand Up @@ -675,9 +677,7 @@ def add_pg_triggers(txn: LoggingTransaction) -> None:
"""
)

await self.db_pool.runInteraction(
"add_postgres_triggers", add_pg_triggers
)
await self.db_pool.runInteraction("add_postgres_triggers", add_pg_triggers)
else:
raise NotImplementedError("Unknown database engine")

Expand Down

0 comments on commit b4cc31d

Please sign in to comment.