From bc95b82cbb7d051752e0d8ed2e445e0667449bc7 Mon Sep 17 00:00:00 2001 From: Seraphys Date: Sun, 14 Jun 2026 15:47:26 -0500 Subject: [PATCH] Delete Duplicate Regex --- ops/30.delete-duplicate-regex.sql | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 ops/30.delete-duplicate-regex.sql diff --git a/ops/30.delete-duplicate-regex.sql b/ops/30.delete-duplicate-regex.sql new file mode 100644 index 0000000..31b8b8f --- /dev/null +++ b/ops/30.delete-duplicate-regex.sql @@ -0,0 +1,30 @@ +-- @operation: export +-- @entity: batch +-- @name: Delete Duplicate Regex +-- @exportedAt: 2026-06-14T20:47:24.994Z +-- @opIds: 10954, 10955, 10956, 10960 + +-- --- BEGIN op 10954 ( update custom_format "WEB Tier 01" ) +DELETE FROM custom_format_conditions + WHERE custom_format_name = 'WEB Tier 01' + AND name = 'ABBIE' + AND type = 'release_group' + AND arr_type = 'all' + AND negate = 0 + AND required = 0; +-- --- END op 10954 + +-- --- BEGIN op 10955 ( update custom_format "WEB Tier 01" ) +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) +VALUES ('WEB Tier 01', 'ABBiE', 'release_group', 'all', 0, 0); + +INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('WEB Tier 01', 'ABBiE', 'ABBiE'); +-- --- END op 10955 + +-- --- BEGIN op 10956 ( delete regular_expression "ABBIE" ) +delete from "regular_expressions" where "name" = 'ABBIE'; +-- --- END op 10956 + +-- --- BEGIN op 10960 ( delete regular_expression "nhanc3" ) +delete from "regular_expressions" where "name" = 'nhanc3'; +-- --- END op 10960