mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
Remove dead dnswarden filter lists and their associations
Co-authored-by: collinbarrett <6483057+collinbarrett@users.noreply.github.com>
This commit is contained in:
parent
d385d690d2
commit
7d0d0babef
8 changed files with 90026 additions and 201 deletions
1888
dotnet-install.sh
vendored
Executable file
1888
dotnet-install.sh
vendored
Executable file
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,156 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class RemoveDeadDnswardenLists : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntax",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2038, (short)1 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntax",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2039, (short)2 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntax",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2040, (short)25 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2038, 2 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2038, 3 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2038, 6 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2039, 2 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2039, 3 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2039, 6 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2040, 2 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2040, 3 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTag",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2040, 6 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 2038, 2130 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 2039, 2131 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 2040, 2132 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterList",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2038);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterList",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2039);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterList",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2040);
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterList",
|
||||
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2038, null, "Blocklist mainly used for dns servers at dnswarden", null, null, null, "https://github.com/dnswarden/blocklist/", "https://github.com/dnswarden/blocklist/issues", 5, "dnswarden Adblocking (Hosts)", null, null, null },
|
||||
{ 2039, null, "Blocklist mainly used for dns servers at dnswarden", null, null, null, "https://github.com/dnswarden/blocklist/", "https://github.com/dnswarden/blocklist/issues", 5, "dnswarden Adblocking (Domains)", null, null, null },
|
||||
{ 2040, null, "Blocklist mainly used for dns servers at dnswarden", null, null, null, "https://github.com/dnswarden/blocklist/", "https://github.com/dnswarden/blocklist/issues", 5, "dnswarden Adblocking (RPZ)", null, null, null }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntax",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2038, (short)1 },
|
||||
{ 2039, (short)2 },
|
||||
{ 2040, (short)25 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTag",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2038, 2 },
|
||||
{ 2038, 3 },
|
||||
{ 2038, 6 },
|
||||
{ 2039, 2 },
|
||||
{ 2039, 3 },
|
||||
{ 2039, 6 },
|
||||
{ 2040, 2 },
|
||||
{ 2040, 3 },
|
||||
{ 2040, 6 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrl",
|
||||
columns: new[] { "FilterListId", "Id", "Primariness", "Url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2038, 2130, (short)1, "https://raw.githubusercontent.com/dnswarden/blocklist/master/blacklist-formats/hosts" },
|
||||
{ 2039, 2131, (short)1, "https://raw.githubusercontent.com/dnswarden/blocklist/master/blacklist-formats/hostnames" },
|
||||
{ 2040, 2132, (short)1, "https://raw.githubusercontent.com/dnswarden/blocklist/master/blacklist-formats/rpz" }
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -14636,33 +14636,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Name = "notracking - Adblocker domains"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2038,
|
||||
Description = "Blocklist mainly used for dns servers at dnswarden",
|
||||
HomeUrl = "https://github.com/dnswarden/blocklist/",
|
||||
IssuesUrl = "https://github.com/dnswarden/blocklist/issues",
|
||||
LicenseId = 5,
|
||||
Name = "dnswarden Adblocking (Hosts)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2039,
|
||||
Description = "Blocklist mainly used for dns servers at dnswarden",
|
||||
HomeUrl = "https://github.com/dnswarden/blocklist/",
|
||||
IssuesUrl = "https://github.com/dnswarden/blocklist/issues",
|
||||
LicenseId = 5,
|
||||
Name = "dnswarden Adblocking (Domains)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2040,
|
||||
Description = "Blocklist mainly used for dns servers at dnswarden",
|
||||
HomeUrl = "https://github.com/dnswarden/blocklist/",
|
||||
IssuesUrl = "https://github.com/dnswarden/blocklist/issues",
|
||||
LicenseId = 5,
|
||||
Name = "dnswarden Adblocking (RPZ)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2041,
|
||||
Description = "This is a slimmer version of \"Dandelion Sprout's Nordic Filters\", intended for users of software tools that doesn't support adblocker syntaxes. It chiefly targets scams and malware on Norwegian or Danish sites, as well as some advert and tracking servers.",
|
||||
|
|
@ -40561,21 +40534,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
SyntaxId = (short)47
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2038,
|
||||
SyntaxId = (short)1
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2039,
|
||||
SyntaxId = (short)2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2040,
|
||||
SyntaxId = (short)25
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2041,
|
||||
SyntaxId = (short)36
|
||||
|
|
@ -55988,51 +55946,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
TagId = 6
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2038,
|
||||
TagId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2038,
|
||||
TagId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2038,
|
||||
TagId = 6
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2039,
|
||||
TagId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2039,
|
||||
TagId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2039,
|
||||
TagId = 6
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2040,
|
||||
TagId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2040,
|
||||
TagId = 3
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2040,
|
||||
TagId = 6
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2041,
|
||||
TagId = 2
|
||||
|
|
@ -81331,30 +81244,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://raw.githubusercontent.com/notracking/hosts-blocklists/master/adblock/adblock.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2038,
|
||||
Id = 2130,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/dnswarden/blocklist/master/blacklist-formats/hosts"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2039,
|
||||
Id = 2131,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/dnswarden/blocklist/master/blacklist-formats/hostnames"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2040,
|
||||
Id = 2132,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/dnswarden/blocklist/master/blacklist-formats/rpz"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2041,
|
||||
Id = 2133,
|
||||
|
|
|
|||
|
|
@ -12889,30 +12889,6 @@
|
|||
"licenseId": 9,
|
||||
"name": "notracking - Adblocker domains"
|
||||
},
|
||||
{
|
||||
"description": "Blocklist mainly used for dns servers at dnswarden",
|
||||
"homeUrl": "https://github.com/dnswarden/blocklist/",
|
||||
"id": 2038,
|
||||
"issuesUrl": "https://github.com/dnswarden/blocklist/issues",
|
||||
"licenseId": 5,
|
||||
"name": "dnswarden Adblocking (Hosts)"
|
||||
},
|
||||
{
|
||||
"description": "Blocklist mainly used for dns servers at dnswarden",
|
||||
"homeUrl": "https://github.com/dnswarden/blocklist/",
|
||||
"id": 2039,
|
||||
"issuesUrl": "https://github.com/dnswarden/blocklist/issues",
|
||||
"licenseId": 5,
|
||||
"name": "dnswarden Adblocking (Domains)"
|
||||
},
|
||||
{
|
||||
"description": "Blocklist mainly used for dns servers at dnswarden",
|
||||
"homeUrl": "https://github.com/dnswarden/blocklist/",
|
||||
"id": 2040,
|
||||
"issuesUrl": "https://github.com/dnswarden/blocklist/issues",
|
||||
"licenseId": 5,
|
||||
"name": "dnswarden Adblocking (RPZ)"
|
||||
},
|
||||
{
|
||||
"description": "This is a slimmer version of \"Dandelion Sprout's Nordic Filters\", intended for users of software tools that doesn't support adblocker syntaxes. It chiefly targets scams and malware on Norwegian or Danish sites, as well as some advert and tracking servers.",
|
||||
"donateUrl": "https://sproutsluckycorner.wordpress.com/2017/11/14/my-work-and-contact-resume/#donations",
|
||||
|
|
|
|||
|
|
@ -6475,18 +6475,6 @@
|
|||
"filterListId": 2036,
|
||||
"syntaxId": 47
|
||||
},
|
||||
{
|
||||
"filterListId": 2038,
|
||||
"syntaxId": 1
|
||||
},
|
||||
{
|
||||
"filterListId": 2039,
|
||||
"syntaxId": 2
|
||||
},
|
||||
{
|
||||
"filterListId": 2040,
|
||||
"syntaxId": 25
|
||||
},
|
||||
{
|
||||
"filterListId": 2041,
|
||||
"syntaxId": 36
|
||||
|
|
|
|||
|
|
@ -9711,42 +9711,6 @@
|
|||
"filterListId": 2036,
|
||||
"tagId": 6
|
||||
},
|
||||
{
|
||||
"filterListId": 2038,
|
||||
"tagId": 2
|
||||
},
|
||||
{
|
||||
"filterListId": 2038,
|
||||
"tagId": 3
|
||||
},
|
||||
{
|
||||
"filterListId": 2038,
|
||||
"tagId": 6
|
||||
},
|
||||
{
|
||||
"filterListId": 2039,
|
||||
"tagId": 2
|
||||
},
|
||||
{
|
||||
"filterListId": 2039,
|
||||
"tagId": 3
|
||||
},
|
||||
{
|
||||
"filterListId": 2039,
|
||||
"tagId": 6
|
||||
},
|
||||
{
|
||||
"filterListId": 2040,
|
||||
"tagId": 2
|
||||
},
|
||||
{
|
||||
"filterListId": 2040,
|
||||
"tagId": 3
|
||||
},
|
||||
{
|
||||
"filterListId": 2040,
|
||||
"tagId": 6
|
||||
},
|
||||
{
|
||||
"filterListId": 2041,
|
||||
"tagId": 2
|
||||
|
|
|
|||
|
|
@ -11915,24 +11915,6 @@
|
|||
"primariness": 1,
|
||||
"url": "https://raw.githubusercontent.com/notracking/hosts-blocklists/master/adblock/adblock.txt"
|
||||
},
|
||||
{
|
||||
"filterListId": 2038,
|
||||
"id": 2130,
|
||||
"primariness": 1,
|
||||
"url": "https://raw.githubusercontent.com/dnswarden/blocklist/master/blacklist-formats/hosts"
|
||||
},
|
||||
{
|
||||
"filterListId": 2039,
|
||||
"id": 2131,
|
||||
"primariness": 1,
|
||||
"url": "https://raw.githubusercontent.com/dnswarden/blocklist/master/blacklist-formats/hostnames"
|
||||
},
|
||||
{
|
||||
"filterListId": 2040,
|
||||
"id": 2132,
|
||||
"primariness": 1,
|
||||
"url": "https://raw.githubusercontent.com/dnswarden/blocklist/master/blacklist-formats/rpz"
|
||||
},
|
||||
{
|
||||
"filterListId": 2041,
|
||||
"id": 2133,
|
||||
|
|
|
|||
Loading…
Reference in a new issue