mirror of
https://github.com/Dictionarry-Hub/database.git
synced 2026-03-15 09:30:08 -04:00
Compare commits
2 Commits
fa387df844
...
8c9c2e667b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8c9c2e667b | ||
|
|
6aa47d6520 |
28
ops/71.add-bakedfel-to-2160p-quality-tier-5.sql
Normal file
28
ops/71.add-bakedfel-to-2160p-quality-tier-5.sql
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Add BakedFEL to 2160p Quality Tier 5
|
||||||
|
-- @exportedAt: 2026-03-02T19:42:38.187Z
|
||||||
|
-- @opIds: 1887, 1888, 1889
|
||||||
|
|
||||||
|
-- --- BEGIN op 1887 ( create regular_expression "BakedFEL" )
|
||||||
|
insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('BakedFEL', '(?<=^|[\s.-])4KDVS\b', 'Matches "4KDVS" when preceded by whitespace, a hyphen or dot', NULL);
|
||||||
|
|
||||||
|
insert into "tags" ("name") values ('Bluray') on conflict ("name") do nothing;
|
||||||
|
|
||||||
|
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('BakedFEL', 'Bluray');
|
||||||
|
|
||||||
|
insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing;
|
||||||
|
|
||||||
|
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('BakedFEL', 'Release Group');
|
||||||
|
-- --- END op 1887
|
||||||
|
|
||||||
|
-- --- BEGIN op 1888 ( update regular_expression "BakedFEL" )
|
||||||
|
update "regular_expressions" set "pattern" = '(?<=^|[\s.-])BakedFEL\b' where "name" = 'BakedFEL' and "pattern" = '(?<=^|[\s.-])4KDVS\b';
|
||||||
|
-- --- END op 1888
|
||||||
|
|
||||||
|
-- --- BEGIN op 1889 ( update custom_format "2160p Quality Tier 5" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('2160p Quality Tier 5', 'BakedFEL', 'release_group', 'all', 0, 0);
|
||||||
|
|
||||||
|
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('2160p Quality Tier 5', 'BakedFEL', 'BakedFEL');
|
||||||
|
-- --- END op 1889
|
||||||
32
ops/72.add-randombytes-to-2160p-quality-tier-5.sql
Normal file
32
ops/72.add-randombytes-to-2160p-quality-tier-5.sql
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
-- @operation: export
|
||||||
|
-- @entity: batch
|
||||||
|
-- @name: Add RandomBytes to 2160p Quality Tier 5
|
||||||
|
-- @exportedAt: 2026-03-02T19:55:54.301Z
|
||||||
|
-- @opIds: 1891, 1892, 1893, 1894
|
||||||
|
|
||||||
|
-- --- BEGIN op 1891 ( create regular_expression "RandomBytes" )
|
||||||
|
insert into "regular_expressions" ("name", "pattern", "description", "regex101_id") values ('RandomBytes', '(?<=^|[\s.-])BakedFEL\b', 'Matches "4KDVS" when preceded by whitespace, a hyphen or dot', NULL);
|
||||||
|
|
||||||
|
insert into "tags" ("name") values ('Bluray') on conflict ("name") do nothing;
|
||||||
|
|
||||||
|
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('RandomBytes', 'Bluray');
|
||||||
|
|
||||||
|
insert into "tags" ("name") values ('Release Group') on conflict ("name") do nothing;
|
||||||
|
|
||||||
|
INSERT INTO regular_expression_tags (regular_expression_name, tag_name) VALUES ('RandomBytes', 'Release Group');
|
||||||
|
-- --- END op 1891
|
||||||
|
|
||||||
|
-- --- BEGIN op 1892 ( update regular_expression "RandomBytes" )
|
||||||
|
update "regular_expressions" set "pattern" = '(?<=^|[\s.-])RandomBytes\b', "description" = 'Matches "RandomBytes" when preceded by whitespace, a hyphen or dot' where "name" = 'RandomBytes' and "pattern" = '(?<=^|[\s.-])BakedFEL\b' and "description" = 'Matches "4KDVS" when preceded by whitespace, a hyphen or dot';
|
||||||
|
-- --- END op 1892
|
||||||
|
|
||||||
|
-- --- BEGIN op 1893 ( update regular_expression "BakedFEL" )
|
||||||
|
update "regular_expressions" set "description" = 'Matches "BakedFEL" when preceded by whitespace, a hyphen or dot' where "name" = 'BakedFEL' and "description" = 'Matches "4KDVS" when preceded by whitespace, a hyphen or dot';
|
||||||
|
-- --- END op 1893
|
||||||
|
|
||||||
|
-- --- BEGIN op 1894 ( update custom_format "2160p Quality Tier 5" )
|
||||||
|
INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required)
|
||||||
|
VALUES ('2160p Quality Tier 5', 'RandomBytes', 'release_group', 'all', 0, 0);
|
||||||
|
|
||||||
|
INSERT INTO condition_patterns (custom_format_name, condition_name, regular_expression_name) VALUES ('2160p Quality Tier 5', 'RandomBytes', 'RandomBytes');
|
||||||
|
-- --- END op 1894
|
||||||
Reference in New Issue
Block a user