Merge pull request #3069 from hagezi/main

Add update my lists
This commit is contained in:
Collin M. Barrett 2022-05-19 15:11:17 +00:00 committed by GitHub
commit c48cf83acb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 89673 additions and 0 deletions

View file

@ -0,0 +1,248 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
public partial class _3069 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2550L,
column: "description",
value: "Allow affiliate and tracking domains that appear frequently on offer web pages, in emails, or in search results. These are usually accessed only after manually clicking a link.");
migrationBuilder.InsertData(
table: "filter_lists",
columns: new[] { "id", "chat_url", "description", "donate_url", "email_address", "forum_url", "home_url", "is_approved", "issues_url", "license_id", "name", "onion_url", "policy_url", "submission_url" },
values: new object[,]
{
{ 2597L, null, "Cleans the Internet and protects your privacy! Blocks Ads, Tracking, Metrics, Telemetry, Phishing, Malware, Scam, Fake, Coins and other Crap.", null, null, null, "https://github.com/hagezi/dns-blocklists", true, null, 11L, "HaGeZi's Multi DNS Blocklist (Domains)", null, null, null },
{ 2598L, null, "Increases security significantly! Blocks Malware, Crypto, Coin, Spam, Scam and Phishing.", null, null, null, "https://github.com/hagezi/dns-blocklists", true, null, 11L, "HaGeZi's Threat Intelligence Feeds DNS Blocklist (Domains)", null, null, null },
{ 2599L, null, "Protects against internet scams, traps & fakes! Blocks fake stores, -news, -science, -streaming, rip-offs, cost traps and co.", null, null, null, "https://github.com/hagezi/dns-blocklists", true, null, 11L, "HaGeZi's Fake DNS Blocklist (Domains)", null, null, null }
});
migrationBuilder.InsertData(
table: "maintainers",
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
values: new object[] { 182L, null, true, "HaGeZi", null, "https://github.com/hagezi" });
migrationBuilder.InsertData(
table: "filter_list_maintainers",
columns: new[] { "filter_list_id", "maintainer_id" },
values: new object[,]
{
{ 2550L, 182L },
{ 2591L, 182L },
{ 2592L, 182L },
{ 2593L, 182L },
{ 2594L, 182L },
{ 2595L, 182L },
{ 2596L, 182L },
{ 2597L, 182L },
{ 2598L, 182L },
{ 2599L, 182L }
});
migrationBuilder.InsertData(
table: "filter_list_syntaxes",
columns: new[] { "filter_list_id", "syntax_id" },
values: new object[,]
{
{ 2597L, 2L },
{ 2598L, 2L },
{ 2599L, 2L }
});
migrationBuilder.InsertData(
table: "filter_list_tags",
columns: new[] { "filter_list_id", "tag_id" },
values: new object[,]
{
{ 2597L, 1L },
{ 2597L, 2L },
{ 2597L, 3L },
{ 2597L, 4L },
{ 2597L, 6L },
{ 2597L, 7L },
{ 2597L, 9L },
{ 2598L, 6L },
{ 2598L, 7L },
{ 2599L, 15L }
});
migrationBuilder.InsertData(
table: "filter_list_view_urls",
columns: new[] { "filter_list_id", "id", "primariness", "url" },
values: new object[,]
{
{ 2597L, 2862L, (short)1, "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/domains/multi.txt" },
{ 2598L, 2863L, (short)1, "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/domains/tif.txt" },
{ 2599L, 2864L, (short)1, "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/domains/fake.txt" }
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2550L, 182L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2591L, 182L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2592L, 182L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2593L, 182L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2594L, 182L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2595L, 182L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2596L, 182L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2597L, 182L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2598L, 182L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2599L, 182L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2597L, 2L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2598L, 2L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2599L, 2L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2597L, 1L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2597L, 2L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2597L, 3L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2597L, 4L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2597L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2597L, 7L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2597L, 9L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2598L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2598L, 7L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2599L, 15L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2597L, 2862L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2598L, 2863L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2599L, 2864L });
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2597L);
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2598L);
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2599L);
migrationBuilder.DeleteData(
table: "maintainers",
keyColumn: "id",
keyValue: 182L);
migrationBuilder.UpdateData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2550L,
column: "description",
value: null);
}
}
}

View file

@ -21625,6 +21625,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
new
{
Id = 2550L,
Description = "Allow affiliate and tracking domains that appear frequently on offer web pages, in emails, or in search results. These are usually accessed only after manually clicking a link.",
HomeUrl = "https://github.com/hagezi/dns-blocklists",
IsApproved = true,
LicenseId = 11L,
@ -22089,6 +22090,33 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IsApproved = true,
LicenseId = 11L,
Name = "HaGeZi's Fake DNS Blocklist (AdBlock/AdGuard)"
},
new
{
Id = 2597L,
Description = "Cleans the Internet and protects your privacy! Blocks Ads, Tracking, Metrics, Telemetry, Phishing, Malware, Scam, Fake, Coins and other Crap.",
HomeUrl = "https://github.com/hagezi/dns-blocklists",
IsApproved = true,
LicenseId = 11L,
Name = "HaGeZi's Multi DNS Blocklist (Domains)"
},
new
{
Id = 2598L,
Description = "Increases security significantly! Blocks Malware, Crypto, Coin, Spam, Scam and Phishing.",
HomeUrl = "https://github.com/hagezi/dns-blocklists",
IsApproved = true,
LicenseId = 11L,
Name = "HaGeZi's Threat Intelligence Feeds DNS Blocklist (Domains)"
},
new
{
Id = 2599L,
Description = "Protects against internet scams, traps & fakes! Blocks fake stores, -news, -science, -streaming, rip-offs, cost traps and co.",
HomeUrl = "https://github.com/hagezi/dns-blocklists",
IsApproved = true,
LicenseId = 11L,
Name = "HaGeZi's Fake DNS Blocklist (Domains)"
});
});
@ -34173,6 +34201,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
MaintainerId = 46L
},
new
{
FilterListId = 2550L,
MaintainerId = 182L
},
new
{
FilterListId = 2554L,
MaintainerId = 22L
@ -34341,6 +34374,51 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2590L,
MaintainerId = 181L
},
new
{
FilterListId = 2591L,
MaintainerId = 182L
},
new
{
FilterListId = 2592L,
MaintainerId = 182L
},
new
{
FilterListId = 2593L,
MaintainerId = 182L
},
new
{
FilterListId = 2594L,
MaintainerId = 182L
},
new
{
FilterListId = 2595L,
MaintainerId = 182L
},
new
{
FilterListId = 2596L,
MaintainerId = 182L
},
new
{
FilterListId = 2597L,
MaintainerId = 182L
},
new
{
FilterListId = 2598L,
MaintainerId = 182L
},
new
{
FilterListId = 2599L,
MaintainerId = 182L
});
});
@ -45327,6 +45405,21 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2596L,
SyntaxId = 47L
},
new
{
FilterListId = 2597L,
SyntaxId = 2L
},
new
{
FilterListId = 2598L,
SyntaxId = 2L
},
new
{
FilterListId = 2599L,
SyntaxId = 2L
});
});
@ -61263,6 +61356,56 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2596L,
TagId = 15L
},
new
{
FilterListId = 2597L,
TagId = 1L
},
new
{
FilterListId = 2597L,
TagId = 2L
},
new
{
FilterListId = 2597L,
TagId = 3L
},
new
{
FilterListId = 2597L,
TagId = 4L
},
new
{
FilterListId = 2597L,
TagId = 6L
},
new
{
FilterListId = 2597L,
TagId = 7L
},
new
{
FilterListId = 2597L,
TagId = 9L
},
new
{
FilterListId = 2598L,
TagId = 6L
},
new
{
FilterListId = 2598L,
TagId = 7L
},
new
{
FilterListId = 2599L,
TagId = 15L
});
});
@ -64461,6 +64604,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IsApproved = true,
Name = "Bank of Lithuania",
Url = "https://www.lb.lt/"
},
new
{
Id = 182L,
IsApproved = true,
Name = "HaGeZi",
Url = "https://github.com/hagezi"
});
});
@ -88709,6 +88859,30 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/fake.txt"
},
new
{
FilterListId = 2597L,
Id = 2862L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/domains/multi.txt"
},
new
{
FilterListId = 2598L,
Id = 2863L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/domains/tif.txt"
},
new
{
FilterListId = 2599L,
Id = 2864L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/domains/fake.txt"
});
});

View file

@ -17117,6 +17117,7 @@
"name": "Hosts for DNS Level Blockers - Adult"
},
{
"description": "Allow affiliate and tracking domains that appear frequently on offer web pages, in emails, or in search results. These are usually accessed only after manually clicking a link.",
"homeUrl": "https://github.com/hagezi/dns-blocklists",
"id": 2550,
"licenseId": 11,
@ -17491,5 +17492,26 @@
"id": 2596,
"licenseId": 11,
"name": "HaGeZi's Fake DNS Blocklist (AdBlock/AdGuard)"
},
{
"description": "Cleans the Internet and protects your privacy! Blocks Ads, Tracking, Metrics, Telemetry, Phishing, Malware, Scam, Fake, Coins and other Crap.",
"homeUrl": "https://github.com/hagezi/dns-blocklists",
"id": 2597,
"licenseId": 11,
"name": "HaGeZi's Multi DNS Blocklist (Domains)"
},
{
"description": "Increases security significantly! Blocks Malware, Crypto, Coin, Spam, Scam and Phishing.",
"homeUrl": "https://github.com/hagezi/dns-blocklists",
"id": 2598,
"licenseId": 11,
"name": "HaGeZi's Threat Intelligence Feeds DNS Blocklist (Domains)"
},
{
"description": "Protects against internet scams, traps & fakes! Blocks fake stores, -news, -science, -streaming, rip-offs, cost traps and co.",
"homeUrl": "https://github.com/hagezi/dns-blocklists",
"id": 2599,
"licenseId": 11,
"name": "HaGeZi's Fake DNS Blocklist (Domains)"
}
]

View file

@ -5843,6 +5843,10 @@
"filterListId": 2542,
"maintainerId": 46
},
{
"filterListId": 2550,
"maintainerId": 182
},
{
"filterListId": 2554,
"maintainerId": 22
@ -5978,5 +5982,41 @@
{
"filterListId": 2590,
"maintainerId": 181
},
{
"filterListId": 2591,
"maintainerId": 182
},
{
"filterListId": 2592,
"maintainerId": 182
},
{
"filterListId": 2593,
"maintainerId": 182
},
{
"filterListId": 2594,
"maintainerId": 182
},
{
"filterListId": 2595,
"maintainerId": 182
},
{
"filterListId": 2596,
"maintainerId": 182
},
{
"filterListId": 2597,
"maintainerId": 182
},
{
"filterListId": 2598,
"maintainerId": 182
},
{
"filterListId": 2599,
"maintainerId": 182
}
]

View file

@ -8770,5 +8770,17 @@
{
"filterListId": 2596,
"syntaxId": 47
},
{
"filterListId": 2597,
"syntaxId": 2
},
{
"filterListId": 2598,
"syntaxId": 2
},
{
"filterListId": 2599,
"syntaxId": 2
}
]

View file

@ -12730,5 +12730,45 @@
{
"filterListId": 2596,
"tagId": 15
},
{
"filterListId": 2597,
"tagId": 1
},
{
"filterListId": 2597,
"tagId": 2
},
{
"filterListId": 2597,
"tagId": 3
},
{
"filterListId": 2597,
"tagId": 4
},
{
"filterListId": 2597,
"tagId": 6
},
{
"filterListId": 2597,
"tagId": 7
},
{
"filterListId": 2597,
"tagId": 9
},
{
"filterListId": 2598,
"tagId": 6
},
{
"filterListId": 2598,
"tagId": 7
},
{
"filterListId": 2599,
"tagId": 15
}
]

View file

@ -16228,5 +16228,23 @@
"id": 2861,
"primariness": 1,
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/fake.txt"
},
{
"filterListId": 2597,
"id": 2862,
"primariness": 1,
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/domains/multi.txt"
},
{
"filterListId": 2598,
"id": 2863,
"primariness": 1,
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/domains/tif.txt"
},
{
"filterListId": 2599,
"id": 2864,
"primariness": 1,
"url": "https://raw.githubusercontent.com/hagezi/dns-blocklists/main/domains/fake.txt"
}
]

View file

@ -941,5 +941,10 @@
"id": 181,
"name": "Bank of Lithuania",
"url": "https://www.lb.lt"
},
{
"id": 182,
"name": "HaGeZi",
"url": "https://github.com/hagezi"
}
]