mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3537
This commit is contained in:
parent
b736b38eea
commit
c10d09b14f
3 changed files with 90617 additions and 0 deletions
90547
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230418190638_3537.Designer.cs
generated
Normal file
90547
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230418190638_3537.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,48 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _3537 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
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[] { 2653L, null, "List of active DGA domains for various malware families.", null, null, null, "https://1275.ru/spisok-aktivnyh-dga-domain-generation-algorithm-domenov/", true, null, 5L, "List of active DGA (domain generation algorithm) domains - General list (all types of threats)", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 2653L, 6L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "segment_number", "url" },
|
||||
values: new object[] { 2653L, 2931L, (short)1, (short)1, "https://1275.ru/DGA/dga.txt" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2653L, 6L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2653L, 2931L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2653L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -22485,6 +22485,15 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/iam-py-test/vxvault_filter/issues",
|
||||
LicenseId = 28L,
|
||||
Name = "VXVault filterlist (unofficial)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2653L,
|
||||
Description = "List of active DGA domains for various malware families.",
|
||||
HomeUrl = "https://1275.ru/spisok-aktivnyh-dga-domain-generation-algorithm-domenov/",
|
||||
IsApproved = true,
|
||||
LicenseId = 5L,
|
||||
Name = "List of active DGA (domain generation algorithm) domains - General list (all types of threats)"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -62514,6 +62523,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2652L,
|
||||
TagId = 6L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2653L,
|
||||
TagId = 6L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -90293,6 +90307,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)2,
|
||||
SegmentNumber = (short)5,
|
||||
Url = "http://wmj5kiic7b6kjplpbvwadnht2nh2qnkbnqtcv3dyvpqtz7ssbssftxid.onion/my-privacy-dns/matrix/-/raw/master/source/porn_filters/explicit_content/snuff.list"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2653L,
|
||||
Id = 2931L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)1,
|
||||
Url = "https://1275.ru/DGA/dga.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue