feat(data): migrate PR #2898

This commit is contained in:
Azure Pipelines EF Migration Bot 2022-04-15 15:53:24 +00:00 committed by Collin M. Barrett
parent dcd854a993
commit 6814a88c63
3 changed files with 88480 additions and 0 deletions

View file

@ -0,0 +1,140 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
public partial class _2898 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
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[,]
{
{ 2579L, null, "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. ", null, null, null, "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists", true, "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists/issues", 9L, "Inversion DNSBL (Domain Name System-based blackhole list) Blocklists Light", null, null, null },
{ 2580L, null, "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. ", null, null, null, "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists", true, "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists/issues", 9L, "Inversion DNSBL (Domain Name System-based blackhole list) Blocklists Full Hostnames", null, null, null },
{ 2581L, null, "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. ", null, null, null, "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists", true, "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists/issues", 9L, "Inversion DNSBL (Domain Name System-based blackhole list) Blocklists Full IPv4s", null, null, null }
});
migrationBuilder.InsertData(
table: "filter_list_maintainers",
columns: new[] { "filter_list_id", "maintainer_id" },
values: new object[,]
{
{ 2579L, 174L },
{ 2580L, 174L },
{ 2581L, 174L }
});
migrationBuilder.InsertData(
table: "filter_list_syntaxes",
columns: new[] { "filter_list_id", "syntax_id" },
values: new object[,]
{
{ 2579L, 2L },
{ 2580L, 2L },
{ 2581L, 9L }
});
migrationBuilder.InsertData(
table: "filter_list_tags",
columns: new[] { "filter_list_id", "tag_id" },
values: new object[,]
{
{ 2579L, 6L },
{ 2580L, 6L },
{ 2581L, 6L }
});
migrationBuilder.InsertData(
table: "filter_list_view_urls",
columns: new[] { "filter_list_id", "id", "primariness", "url" },
values: new object[,]
{
{ 2579L, 2844L, (short)1, "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists/blob/main/Google_hostnames_light.txt?raw=true" },
{ 2580L, 2845L, (short)1, "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists/blob/main/Google_hostnames.txt?raw=true" },
{ 2581L, 2846L, (short)1, "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists/blob/main/Google_ipv4.txt?raw=true" }
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2579L, 174L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2580L, 174L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2581L, 174L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2579L, 2L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2580L, 2L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2581L, 9L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2579L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2580L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2581L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2579L, 2844L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2580L, 2845L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2581L, 2846L });
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2579L);
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2580L);
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2581L);
}
}
}

View file

@ -21916,6 +21916,36 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/issues",
LicenseId = 10L,
Name = "Syncthing Relay Server IPs"
},
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. ",
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 Light"
},
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. ",
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 Hostnames"
},
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. ",
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"
});
});
@ -33968,6 +33998,21 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2578L,
MaintainerId = 174L
},
new
{
FilterListId = 2579L,
MaintainerId = 174L
},
new
{
FilterListId = 2580L,
MaintainerId = 174L
},
new
{
FilterListId = 2581L,
MaintainerId = 174L
});
});
@ -44864,6 +44909,21 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2578L,
SyntaxId = 9L
},
new
{
FilterListId = 2579L,
SyntaxId = 2L
},
new
{
FilterListId = 2580L,
SyntaxId = 2L
},
new
{
FilterListId = 2581L,
SyntaxId = 9L
});
});
@ -60665,6 +60725,21 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2578L,
TagId = 10L
},
new
{
FilterListId = 2579L,
TagId = 6L
},
new
{
FilterListId = 2580L,
TagId = 6L
},
new
{
FilterListId = 2581L,
TagId = 6L
});
});
@ -87911,6 +87986,30 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/blob/main/ips.txt?raw=1"
},
new
{
FilterListId = 2579L,
Id = 2844L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists/blob/main/Google_hostnames_light.txt?raw=true"
},
new
{
FilterListId = 2580L,
Id = 2845L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists/blob/main/Google_hostnames.txt?raw=true"
},
new
{
FilterListId = 2581L,
Id = 2846L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://github.com/elliotwutingfeng/Inversion-DNSBL-Blocklists/blob/main/Google_ipv4.txt?raw=true"
});
});