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

Commit 2451d8d

Browse files
committed
Fix old sqlite
1 parent 57f18fb commit 2451d8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

synapse/storage/background_updates.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ def run_validate_constraint_and_delete_rows_schema_delta(
11051105
# PRIMARY KEY), and so don't need to be recreated.
11061106
txn.execute(
11071107
"""
1108-
SELECT sql FROM sqlite_schema
1108+
SELECT sql FROM sqlite_master
11091109
WHERE tbl_name = ? AND type != 'table' AND sql IS NOT NULL
11101110
""",
11111111
(table,),

tests/storage/test_background_update.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ def delta(txn: LoggingTransaction) -> None:
526526
# Ensure the index exists in the schema.
527527
self.get_success(
528528
self.store.db_pool.simple_select_one_onecol(
529-
table="sqlite_schema",
529+
table="sqlite_master",
530530
keyvalues={"tbl_name": "test_constraint"},
531531
retcol="name",
532532
)

0 commit comments

Comments
 (0)