feat(data): migrate PR #2909

This commit is contained in:
Azure Pipelines EF Migration Bot 2022-04-15 20:07:17 +00:00 committed by Collin M. Barrett
parent 064ee1af8b
commit f1988ed34d
3 changed files with 88873 additions and 0 deletions

View file

@ -0,0 +1,102 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
public partial class _2909 : 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[,]
{
{ 2589L, null, "ThreatShare is an advanced threat tracker that publicly tracks command & control servers for malware. The tracker is powered by Sentinel, an automated intelligence platform built to supply ThreatShare with a constant stream of control panels. Threat intelligence can be submitted through the site and will then be displayed to our users. This service is non profit and has been created to expose cybercriminals to the public along with providing researchers with a steady stream of threat intelligence.", null, null, null, "https://threatshare.io/", true, null, 5L, "ThreatShare", null, null, "https://threatshare.io/submit/" },
{ 2590L, null, "Websites deemed by the Bank of Lithuania to be used for conducting fraudulent activities and money scams.", null, null, null, "https://www.lb.lt/en/illegalwww", true, null, 5L, "Bank of Lithuania Illegal websites", null, null, null }
});
migrationBuilder.InsertData(
table: "maintainers",
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
values: new object[] { 181L, null, true, "Bank of Lithuania", null, "https://www.lb.lt/" });
migrationBuilder.InsertData(
table: "filter_list_maintainers",
columns: new[] { "filter_list_id", "maintainer_id" },
values: new object[] { 2590L, 181L });
migrationBuilder.InsertData(
table: "filter_list_syntaxes",
columns: new[] { "filter_list_id", "syntax_id" },
values: new object[,]
{
{ 2589L, 57L },
{ 2590L, 57L }
});
migrationBuilder.InsertData(
table: "filter_list_tags",
columns: new[] { "filter_list_id", "tag_id" },
values: new object[] { 2589L, 6L });
migrationBuilder.InsertData(
table: "filter_list_view_urls",
columns: new[] { "filter_list_id", "id", "primariness", "url" },
values: new object[,]
{
{ 2589L, 2854L, (short)1, "https://threatshare.io/feed" },
{ 2590L, 2855L, (short)1, "https://www.lb.lt/en/illegalwww?export=csv" }
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2590L, 181L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2589L, 57L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2590L, 57L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2589L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2589L, 2854L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2590L, 2855L });
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2589L);
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2590L);
migrationBuilder.DeleteData(
table: "maintainers",
keyColumn: "id",
keyValue: 181L);
}
}
}

View file

@ -22017,6 +22017,25 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://github.com/gnxsecurity/gnx-threat-intelligence/issues",
LicenseId = 5L,
Name = "gnX Threat Intelligence"
},
new
{
Id = 2589L,
Description = "ThreatShare is an advanced threat tracker that publicly tracks command & control servers for malware. The tracker is powered by Sentinel, an automated intelligence platform built to supply ThreatShare with a constant stream of control panels. Threat intelligence can be submitted through the site and will then be displayed to our users. This service is non profit and has been created to expose cybercriminals to the public along with providing researchers with a steady stream of threat intelligence.",
HomeUrl = "https://threatshare.io/",
IsApproved = true,
LicenseId = 5L,
Name = "ThreatShare",
SubmissionUrl = "https://threatshare.io/submit/"
},
new
{
Id = 2590L,
Description = "Websites deemed by the Bank of Lithuania to be used for conducting fraudulent activities and money scams.",
HomeUrl = "https://www.lb.lt/en/illegalwww",
IsApproved = true,
LicenseId = 5L,
Name = "Bank of Lithuania Illegal websites"
});
});
@ -34264,6 +34283,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2588L,
MaintainerId = 180L
},
new
{
FilterListId = 2590L,
MaintainerId = 181L
});
});
@ -45210,6 +45234,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2588L,
SyntaxId = 9L
},
new
{
FilterListId = 2589L,
SyntaxId = 57L
},
new
{
FilterListId = 2590L,
SyntaxId = 57L
});
});
@ -61041,6 +61075,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2588L,
TagId = 6L
},
new
{
FilterListId = 2589L,
TagId = 6L
});
});
@ -64232,6 +64271,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IsApproved = true,
Name = "gnxsecurity",
Url = "https://github.com/gnxsecurity"
},
new
{
Id = 181L,
IsApproved = true,
Name = "Bank of Lithuania",
Url = "https://www.lb.lt/"
});
});
@ -88416,6 +88462,22 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/gnxsecurity/gnx-threat-intelligence/master/latest-blacklist.raw"
},
new
{
FilterListId = 2589L,
Id = 2854L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://threatshare.io/feed"
},
new
{
FilterListId = 2590L,
Id = 2855L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://www.lb.lt/en/illegalwww?export=csv"
});
});