mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2908
This commit is contained in:
parent
717e41436e
commit
9fa6fbdf55
3 changed files with 88762 additions and 0 deletions
88647
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220415191140_2908.Designer.cs
generated
Normal file
88647
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220415191140_2908.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,75 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2908 : 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[] { 2588L, null, "gnX threat intelligence feed contains a blacklist of IP addresses that have crossed a threshold indicating malicious intent and/or potential IOC [indicator of compromise] activity. Because of the criteria standards and threat list sanitiation process, we significantly reduce the potential of false positives. Can be used as a standalone blocklist or to agument your existing threat intelligence.", null, null, null, "https://github.com/gnxsecurity/gnx-threat-intelligence", true, "https://github.com/gnxsecurity/gnx-threat-intelligence/issues", 5L, "gnX Threat Intelligence", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "maintainers",
|
||||
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
|
||||
values: new object[] { 180L, null, true, "gnxsecurity", null, "https://github.com/gnxsecurity" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[] { 2588L, 180L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 2588L, 9L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 2588L, 6L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "url" },
|
||||
values: new object[] { 2588L, 2853L, (short)1, "https://raw.githubusercontent.com/gnxsecurity/gnx-threat-intelligence/master/latest-blacklist.raw" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2588L, 180L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2588L, 9L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2588L, 6L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2588L, 2853L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2588L);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "maintainers",
|
||||
keyColumn: "id",
|
||||
keyValue: 180L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -22007,6 +22007,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/nickspaargaren/no-google/issues",
|
||||
LicenseId = 11L,
|
||||
Name = "No Google (Unbound)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2588L,
|
||||
Description = "gnX threat intelligence feed contains a blacklist of IP addresses that have crossed a threshold indicating malicious intent and/or potential IOC [indicator of compromise] activity. Because of the criteria standards and threat list sanitiation process, we significantly reduce the potential of false positives. Can be used as a standalone blocklist or to agument your existing threat intelligence.",
|
||||
HomeUrl = "https://github.com/gnxsecurity/gnx-threat-intelligence",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/gnxsecurity/gnx-threat-intelligence/issues",
|
||||
LicenseId = 5L,
|
||||
Name = "gnX Threat Intelligence"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -34249,6 +34259,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2587L,
|
||||
MaintainerId = 179L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2588L,
|
||||
MaintainerId = 180L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -45190,6 +45205,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2587L,
|
||||
SyntaxId = 24L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2588L,
|
||||
SyntaxId = 9L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -61016,6 +61036,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2587L,
|
||||
TagId = 19L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2588L,
|
||||
TagId = 6L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -64200,6 +64225,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IsApproved = true,
|
||||
Name = "Nick Spaargaren",
|
||||
Url = "https://github.com/nickspaargaren"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 180L,
|
||||
IsApproved = true,
|
||||
Name = "gnxsecurity",
|
||||
Url = "https://github.com/gnxsecurity"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -88376,6 +88408,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/nickspaargaren/no-google/master/pihole-google-unbound.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2588L,
|
||||
Id = 2853L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/gnxsecurity/gnx-threat-intelligence/master/latest-blacklist.raw"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue