Skip to content

Commit 0765105

Browse files
committed
Ban tokar86a
1 parent acd524b commit 0765105

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

ops/180.ban-tokar86a.sql

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
-- @operation: export
2+
-- @entity: batch
3+
-- @name: Ban tokar86a
4+
-- @exportedAt: 2026-06-13T01:38:56.721Z
5+
-- @opIds: 10932, 10933, 10934
6+
7+
-- --- BEGIN op 10932 ( create regular_expression "tokar86a" )
8+
insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('tokar86a', '(?<=^|[\s.-])AJP69\b', NULL, NULL);
9+
10+
insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing;
11+
12+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('tokar86a', 'Release Group');
13+
14+
insert into "tags" ("name") values ('WEB-DL') on conflict ("name") do nothing;
15+
16+
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('tokar86a', 'WEB-DL');
17+
-- --- END op 10932
18+
19+
-- --- BEGIN op 10933 ( update regular_expression "tokar86a" )
20+
update "regular_expressions" set "pattern" = '(?<=^|[\s.-])tokar86a\b' where "name" = 'tokar86a' and "pattern" = '(?<=^|[\s.-])AJP69\b';
21+
-- --- END op 10933
22+
23+
-- --- BEGIN op 10934 ( update custom_format "Banned Language Groups" )
24+
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
25+
VALUES ('Banned Language Groups', 'tokar86a', 'release_group', 'all', 0, 0);
26+
27+
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('Banned Language Groups', 'tokar86a', 'tokar86a');
28+
-- --- END op 10934

0 commit comments

Comments
 (0)