mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
Add AdGuard Ukrainian Filter with complete data relationships
Co-authored-by: collinbarrett <6483057+collinbarrett@users.noreply.github.com>
This commit is contained in:
parent
6f8f86145c
commit
a15fb2302d
8 changed files with 88146 additions and 0 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,68 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class AddAdGuardUkrainianFilter : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterList",
|
||||
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
|
||||
values: new object[] { 2739, null, "Filter that enables ad blocking on websites in Ukrainian language.", null, null, "https://forum.adguard.com/index.php?categories/filter-rules.66/", "https://github.com/AdguardTeam/AdguardFilters", "https://github.com/AdguardTeam/AdguardFilters/issues", 12, "AdGuard Ukrainian Filter", null, "https://kb.adguard.com/en/general/adguard-filter-policy", null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListLanguage",
|
||||
columns: new[] { "FilterListId", "LanguageId" },
|
||||
values: new object[] { 2739, (short)167 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListMaintainer",
|
||||
columns: new[] { "FilterListId", "MaintainerId" },
|
||||
values: new object[] { 2739, 46 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntax",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[] { 2739, (short)4 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrl",
|
||||
columns: new[] { "FilterListId", "Id", "Primariness", "Url" },
|
||||
values: new object[] { 2739, 3071, (short)1, "https://filters.adtidy.org/extension/ublock/filters/23.txt" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListLanguage",
|
||||
keyColumns: new[] { "FilterListId", "LanguageId" },
|
||||
keyValues: new object[] { 2739, (short)167 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainer",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2739, 46 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntax",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2739, (short)4 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 2739, 3071 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterList",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2739);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -20286,6 +20286,17 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/AdCrunchSoftware/Filters/issues",
|
||||
LicenseId = 4,
|
||||
Name = "AdCrunch for Adblock Plus"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2739,
|
||||
Description = "Filter that enables ad blocking on websites in Ukrainian language.",
|
||||
ForumUrl = "https://forum.adguard.com/index.php?categories/filter-rules.66/",
|
||||
HomeUrl = "https://github.com/AdguardTeam/AdguardFilters",
|
||||
IssuesUrl = "https://github.com/AdguardTeam/AdguardFilters/issues",
|
||||
LicenseId = 12,
|
||||
Name = "AdGuard Ukrainian Filter",
|
||||
PolicyUrl = "https://kb.adguard.com/en/general/adguard-filter-policy"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -24723,6 +24734,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2737,
|
||||
LanguageId = (short)47
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2739,
|
||||
LanguageId = (short)167
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -32420,6 +32436,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2738,
|
||||
MaintainerId = 200
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2739,
|
||||
MaintainerId = 46
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -43787,6 +43808,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2738,
|
||||
SyntaxId = (short)3
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2739,
|
||||
SyntaxId = (short)4
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -87778,6 +87804,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/AdCrunchSoftware/Filters/refs/heads/main/AdCrunchforABP.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2739,
|
||||
Id = 3071,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://filters.adtidy.org/extension/ublock/filters/23.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -17924,5 +17924,15 @@
|
|||
"issuesUrl": "https://github.com/AdCrunchSoftware/Filters/issues",
|
||||
"licenseId": 4,
|
||||
"name": "AdCrunch for Adblock Plus"
|
||||
},
|
||||
{
|
||||
"description": "Filter that enables ad blocking on websites in Ukrainian language.",
|
||||
"forumUrl": "https://forum.adguard.com/index.php?categories/filter-rules.66/",
|
||||
"homeUrl": "https://github.com/AdguardTeam/AdguardFilters",
|
||||
"id": 2739,
|
||||
"issuesUrl": "https://github.com/AdguardTeam/AdguardFilters/issues",
|
||||
"licenseId": 12,
|
||||
"name": "AdGuard Ukrainian Filter",
|
||||
"policyUrl": "https://kb.adguard.com/en/general/adguard-filter-policy"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -3534,5 +3534,9 @@
|
|||
{
|
||||
"filterListId": 2737,
|
||||
"languageId": 47
|
||||
},
|
||||
{
|
||||
"filterListId": 2739,
|
||||
"languageId": 167
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -6142,5 +6142,9 @@
|
|||
{
|
||||
"filterListId": 2738,
|
||||
"maintainerId": 200
|
||||
},
|
||||
{
|
||||
"filterListId": 2739,
|
||||
"maintainerId": 46
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -9078,5 +9078,9 @@
|
|||
{
|
||||
"filterListId": 2738,
|
||||
"syntaxId": 3
|
||||
},
|
||||
{
|
||||
"filterListId": 2739,
|
||||
"syntaxId": 4
|
||||
}
|
||||
]
|
||||
|
|
|
|||
|
|
@ -16827,5 +16827,11 @@
|
|||
"id": 3070,
|
||||
"primariness": 1,
|
||||
"url": "https://raw.githubusercontent.com/AdCrunchSoftware/Filters/refs/heads/main/AdCrunchforABP.txt"
|
||||
},
|
||||
{
|
||||
"filterListId": 2739,
|
||||
"id": 3071,
|
||||
"primariness": 1,
|
||||
"url": "https://filters.adtidy.org/extension/ublock/filters/23.txt"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue