mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2899
This commit is contained in:
parent
af2889d14d
commit
2b303ae335
3 changed files with 88441 additions and 3 deletions
88281
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220415160757_2899.Designer.cs
generated
Normal file
88281
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220415160757_2899.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,117 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2899 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2579L,
|
||||
column: "description",
|
||||
value: "Malicious URL blocklists for DNSBL applications like pfBlockerNG or Pi-hole, automatically updated every 24 hours. These blocklists are automatically generated by scanning various public URL sources using the Safe Browsing API from Google.");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2580L,
|
||||
column: "description",
|
||||
value: "Malicious URL blocklists for DNSBL applications like pfBlockerNG or Pi-hole, automatically updated every 24 hours. These blocklists are automatically generated by scanning various public URL sources using the Safe Browsing API from Google.");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2581L,
|
||||
column: "description",
|
||||
value: "Malicious URL blocklists for DNSBL applications like pfBlockerNG or Pi-hole, automatically updated every 24 hours. These blocklists are automatically generated by scanning various public URL sources using the Safe Browsing API from Google.");
|
||||
|
||||
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[] { 2582L, null, "Whitelist for Ad Blockers, helps to unblock false positives.", null, null, null, "https://github.com/DevShubam/Whitelist", true, "https://github.com/DevShubam/Whitelist/issues", 2L, "Shub's Whitelist", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "maintainers",
|
||||
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
|
||||
values: new object[] { 175L, null, true, "DevShubam", null, "https://github.com/DevShubam" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[] { 2582L, 175L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 2582L, 9L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 2582L, 10L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "url" },
|
||||
values: new object[] { 2582L, 2847L, (short)1, "https://raw.githubusercontent.com/DevShubam/Whitelist/master/whitelist.txt" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2582L, 175L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2582L, 9L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2582L, 10L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2582L, 2847L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2582L);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "maintainers",
|
||||
keyColumn: "id",
|
||||
keyValue: 175L);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2579L,
|
||||
column: "description",
|
||||
value: "Malicious URL blocklists for DNSBL applications like pfBlockerNG or Pi-hole, automatically updated every 24 hours. These blocklists are automatically generated by scanning various public URL sources using the Safe Browsing API from Google. ");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2580L,
|
||||
column: "description",
|
||||
value: "Malicious URL blocklists for DNSBL applications like pfBlockerNG or Pi-hole, automatically updated every 24 hours. These blocklists are automatically generated by scanning various public URL sources using the Safe Browsing API from Google. ");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2581L,
|
||||
column: "description",
|
||||
value: "Malicious URL blocklists for DNSBL applications like pfBlockerNG or Pi-hole, automatically updated every 24 hours. These blocklists are automatically generated by scanning various public URL sources using the Safe Browsing API from Google. ");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -21920,7 +21920,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
Id = 2579L,
|
||||
Description = "Malicious URL blocklists for DNSBL applications like pfBlockerNG or Pi-hole, automatically updated every 24 hours. These blocklists are automatically generated by scanning various public URL sources using the Safe Browsing API from Google. ",
|
||||
Description = "Malicious URL blocklists for DNSBL applications like pfBlockerNG or Pi-hole, automatically updated every 24 hours. These blocklists are automatically generated by scanning various public URL sources using the Safe Browsing API from Google.",
|
||||
HomeUrl = "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists/issues",
|
||||
|
|
@ -21930,7 +21930,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
Id = 2580L,
|
||||
Description = "Malicious URL blocklists for DNSBL applications like pfBlockerNG or Pi-hole, automatically updated every 24 hours. These blocklists are automatically generated by scanning various public URL sources using the Safe Browsing API from Google. ",
|
||||
Description = "Malicious URL blocklists for DNSBL applications like pfBlockerNG or Pi-hole, automatically updated every 24 hours. These blocklists are automatically generated by scanning various public URL sources using the Safe Browsing API from Google.",
|
||||
HomeUrl = "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists/issues",
|
||||
|
|
@ -21940,12 +21940,22 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
Id = 2581L,
|
||||
Description = "Malicious URL blocklists for DNSBL applications like pfBlockerNG or Pi-hole, automatically updated every 24 hours. These blocklists are automatically generated by scanning various public URL sources using the Safe Browsing API from Google. ",
|
||||
Description = "Malicious URL blocklists for DNSBL applications like pfBlockerNG or Pi-hole, automatically updated every 24 hours. These blocklists are automatically generated by scanning various public URL sources using the Safe Browsing API from Google.",
|
||||
HomeUrl = "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists/issues",
|
||||
LicenseId = 9L,
|
||||
Name = "Inversion DNSBL (Domain Name System-based blackhole list) Blocklists Full IPv4s"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2582L,
|
||||
Description = "Whitelist for Ad Blockers, helps to unblock false positives.",
|
||||
HomeUrl = "https://github.com/DevShubam/Whitelist",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/DevShubam/Whitelist/issues",
|
||||
LicenseId = 2L,
|
||||
Name = "Shub's Whitelist"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -34013,6 +34023,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2581L,
|
||||
MaintainerId = 174L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2582L,
|
||||
MaintainerId = 175L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -44924,6 +44939,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2581L,
|
||||
SyntaxId = 9L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2582L,
|
||||
SyntaxId = 9L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -60740,6 +60760,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2581L,
|
||||
TagId = 6L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2582L,
|
||||
TagId = 10L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -63889,6 +63914,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IsApproved = true,
|
||||
Name = "Wu Tingfeng",
|
||||
Url = "https://github.com/elliotwutingfeng"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 175L,
|
||||
IsApproved = true,
|
||||
Name = "DevShubam",
|
||||
Url = "https://github.com/DevShubam"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -88010,6 +88042,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists/blob/main/Google_ipv4.txt?raw=true"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2582L,
|
||||
Id = 2847L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/DevShubam/Whitelist/master/whitelist.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue