From 39c27ef65fac944a327f249071f955b89b7bbaea Mon Sep 17 00:00:00 2001 From: Seraphys Date: Mon, 29 Jun 2026 19:21:32 +0000 Subject: [PATCH] Fix VOSTRF --- ops/59.fix-vostrf.sql | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 ops/59.fix-vostrf.sql diff --git a/ops/59.fix-vostrf.sql b/ops/59.fix-vostrf.sql new file mode 100644 index 0000000..172d682 --- /dev/null +++ b/ops/59.fix-vostrf.sql @@ -0,0 +1,31 @@ +-- @operation: export +-- @entity: batch +-- @name: Fix VOSTRF +-- @exportedAt: 2026-06-29T19:21:31.439Z +-- @opIds: 11427, 11428, 11429, 11430, 11431 + +-- --- BEGIN op 11427 ( create regular_expression "VOSTFR" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('VOSTFR', '\b(VOST.*?FR(E|A)?)\b', NULL, NULL); +-- --- END op 11427 + +-- --- BEGIN op 11428 ( create regular_expression "SUBFRENCH" ) +insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('SUBFRENCH', '\b(VOST.*?FR(E|A)?)\b', NULL, NULL); +-- --- END op 11428 + +-- --- BEGIN op 11429 ( update regular_expression "SUBFRENCH" ) +update "regular_expressions" set "pattern" = '\b(SUBFR(A|ENCH)?)\b' where "name" = 'SUBFRENCH' and "pattern" = '\b(VOST.*?FR(E|A)?)\b'; +-- --- END op 11429 + +-- --- BEGIN op 11430 ( update custom_format "VOSTRF" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('VOSTRF', 'VOSTFR', 'release_title', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('VOSTRF', 'VOSTFR', 'VOSTFR'); +-- --- END op 11430 + +-- --- BEGIN op 11431 ( update custom_format "VOSTRF" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('VOSTRF', 'SUBFRENCH', 'release_title', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('VOSTRF', 'SUBFRENCH', 'SUBFRENCH'); +-- --- END op 11431