From 3399748b29a8dee547111068397ed9ff9af12ec6 Mon Sep 17 00:00:00 2001 From: Seraphys Date: Tue, 7 Jul 2026 00:44:09 +0000 Subject: [PATCH] Drift Fixes --- ops/95.drift-fixes.sql | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ops/95.drift-fixes.sql diff --git a/ops/95.drift-fixes.sql b/ops/95.drift-fixes.sql new file mode 100644 index 0000000..bc74c90 --- /dev/null +++ b/ops/95.drift-fixes.sql @@ -0,0 +1,42 @@ +-- @operation: export +-- @entity: batch +-- @name: Drift Fixes +-- @exportedAt: 2026-07-07T00:44:07.819Z +-- @opIds: 12145, 12146, 12155, 12156, 12157, 12158 + +-- --- BEGIN op 12145 ( update custom_format "BR-DISK (BTN)" ) +DELETE FROM custom_format_conditions + WHERE custom_format_name = 'BR-DISK (BTN)' + AND name = 'BR-DISK' + AND type = 'release_title' + AND arr_type = 'sonarr' + AND negate = 0 + AND required = 1; +-- --- END op 12145 + +-- --- BEGIN op 12146 ( update custom_format "BR-DISK (BTN)" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('BR-DISK (BTN)', 'BR-DISK (BTN)', 'release_title', 'sonarr', 0, 1); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('BR-DISK (BTN)', 'BR-DISK (BTN)', 'BR-DISK (BTN)'); +-- --- END op 12146 + +-- --- BEGIN op 12155 ( create regular_expression "Not Stereo" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('Not Stereo', '(?<=\b[12]\d{3}\b.*?)(?