Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Commit c5347b0

Browse files
change in concat function to older version
1 parent 628bd5b commit c5347b0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

migrations/versions/2025_03_04_0934-3ec2b4ab569c_migrate_to_glob_pattern.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@ def upgrade() -> None:
2121
# Begin transaction
2222
op.execute("BEGIN TRANSACTION;")
2323

24-
# Update the matcher types. We need to do this every time we change the matcher types.
25-
# in /muxing/models.py
24+
# Update the matcher blobs to use glob patterns
2625
op.execute(
2726
"""
2827
UPDATE muxes
29-
SET matcher_blob = CONCAT('*', matcher_blob)
28+
SET matcher_blob = '*' || matcher_blob
3029
WHERE matcher_type LIKE "%filename%" AND matcher_blob LIKE ".%"
3130
"""
3231
)

0 commit comments

Comments
 (0)