|
| 1 | +-- @operation: export |
| 2 | +-- @entity: batch |
| 3 | +-- @name: Create Not Original or English CF |
| 4 | +-- @exportedAt: 2026-02-10T01:02:29.481Z |
| 5 | +-- @opIds: 1496, 1497, 1498, 1499, 1500, 1501, 1502, 1503, 1504, 1505, 1506, 1507, 1508 |
| 6 | + |
| 7 | +-- --- BEGIN op 1496 ( create custom_format "Not Original or English" ) |
| 8 | +insert into "custom_formats" ("name", "description") values ('Not Original or English', ''); |
| 9 | +-- --- END op 1496 |
| 10 | + |
| 11 | +-- --- BEGIN op 1497 ( update custom_format "Not Original or English" ) |
| 12 | +update "custom_formats" set "description" = 'Matches releases that don''''t include the Original or English language track. Multiple audio tracks is allowed' where "name" = 'Not Original or English' and "description" = ''; |
| 13 | +-- --- END op 1497 |
| 14 | + |
| 15 | +-- --- BEGIN op 1498 ( update custom_format "Not Original or English" ) |
| 16 | +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) |
| 17 | +VALUES ('Not Original or English', 'Original', 'language', 'all', 1, 0); |
| 18 | + |
| 19 | +INSERT INTO condition_languages (custom_format_name, condition_name, language_name, except_language) VALUES ('Not Original or English', 'Original', 'Original', 0); |
| 20 | +-- --- END op 1498 |
| 21 | + |
| 22 | +-- --- BEGIN op 1499 ( update custom_format "Not Original or English" ) |
| 23 | +INSERT INTO custom_format_conditions (custom_format_name, name, type, arr_type, negate, required) |
| 24 | +VALUES ('Not Original or English', 'English', 'language', 'all', 1, 0); |
| 25 | + |
| 26 | +INSERT INTO condition_languages (custom_format_name, condition_name, language_name, except_language) VALUES ('Not Original or English', 'English', 'English', 0); |
| 27 | +-- --- END op 1499 |
| 28 | + |
| 29 | +-- --- BEGIN op 1500 ( update custom_format "Not Original or English" ) |
| 30 | +insert into "tags" ("name") values ('Language') on conflict ("name") do nothing; |
| 31 | + |
| 32 | +INSERT INTO custom_format_tags (custom_format_name, tag_name) VALUES ('Not Original or English', 'Language'); |
| 33 | +-- --- END op 1500 |
| 34 | + |
| 35 | +-- --- BEGIN op 1501 ( update custom_format "Not Only Original" ) |
| 36 | +update "custom_formats" set "description" = 'Matches releases that don''t include the Original language track. Multiple audio tracks are NOT allowed.' where "name" = 'Not Only Original' and "description" = 'Matches releases that don''t include the Original language track. Multiple audio tracks is NOT allowed.'; |
| 37 | +-- --- END op 1501 |
| 38 | + |
| 39 | +-- --- BEGIN op 1502 ( update custom_format "Not Only Original" ) |
| 40 | +update "custom_formats" set "description" = 'Matches releases that don''t include the Original language. Multiple audio tracks are NOT allowed.' where "name" = 'Not Only Original' and "description" = 'Matches releases that don''t include the Original language track. Multiple audio tracks are NOT allowed.'; |
| 41 | +-- --- END op 1502 |
| 42 | + |
| 43 | +-- --- BEGIN op 1503 ( update custom_format "Not Original" ) |
| 44 | +update "custom_formats" set "description" = 'Matches releases that don''''t include the Original language. Multiple audio tracks is allowed' where "name" = 'Not Original' and "description" = 'Matches releases that don''''t include the Original language track. Multiple audio tracks is allowed'; |
| 45 | +-- --- END op 1503 |
| 46 | + |
| 47 | +-- --- BEGIN op 1504 ( update custom_format "Not Original" ) |
| 48 | +update "custom_formats" set "description" = 'Matches releases that don''''t include the Original language. Multiple audio tracks are allowed' where "name" = 'Not Original' and "description" = 'Matches releases that don''''t include the Original language. Multiple audio tracks is allowed'; |
| 49 | +-- --- END op 1504 |
| 50 | + |
| 51 | +-- --- BEGIN op 1505 ( update custom_format "Not Original or English" ) |
| 52 | +update "custom_formats" set "description" = 'Matches releases that don''''t include the Original or English language. Multiple audio tracks is allowed' where "name" = 'Not Original or English' and "description" = 'Matches releases that don''''t include the Original or English language track. Multiple audio tracks is allowed'; |
| 53 | +-- --- END op 1505 |
| 54 | + |
| 55 | +-- --- BEGIN op 1506 ( update custom_format "Not Only Original" ) |
| 56 | +update "custom_formats" set "description" = 'Matches releases that don''t include the Original language. Other Languages are NOT allowed.' where "name" = 'Not Only Original' and "description" = 'Matches releases that don''t include the Original language. Multiple audio tracks are NOT allowed.'; |
| 57 | +-- --- END op 1506 |
| 58 | + |
| 59 | +-- --- BEGIN op 1507 ( update custom_format "Not Original" ) |
| 60 | +update "custom_formats" set "description" = 'Matches releases that don''''t include the Original language. Other Languages are allowed.' where "name" = 'Not Original' and "description" = 'Matches releases that don''''t include the Original language. Multiple audio tracks are allowed'; |
| 61 | +-- --- END op 1507 |
| 62 | + |
| 63 | +-- --- BEGIN op 1508 ( update custom_format "Not Original or English" ) |
| 64 | +update "custom_formats" set "description" = 'Matches releases that don''''t include the Original or English language. Other Languages are allowed.' where "name" = 'Not Original or English' and "description" = 'Matches releases that don''''t include the Original or English language. Multiple audio tracks is allowed'; |
| 65 | +-- --- END op 1508 |
0 commit comments