Skip to content

Commit 4984858

Browse files
committed
Fix check delta script
It was thinking the table name was `IN`, as it matched `connection_positi(on IS) NULL`.
1 parent 5c48983 commit 4984858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts-dev/check_schema_delta.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
SCHEMA_FILE_REGEX = re.compile(r"^synapse/storage/schema/(.*)/delta/(.*)/(.*)$")
1414
INDEX_CREATION_REGEX = re.compile(
15-
r"CREATE .*INDEX .*ON ([a-z_0-9]+)", flags=re.IGNORECASE
15+
r"CREATE .*INDEX .*ON ([a-z_0-9]+)\s+\(", flags=re.IGNORECASE
1616
)
1717
INDEX_DELETION_REGEX = re.compile(r"DROP .*INDEX ([a-z_0-9]+)", flags=re.IGNORECASE)
1818
TABLE_CREATION_REGEX = re.compile(

0 commit comments

Comments
 (0)