mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3538
This commit is contained in:
parent
70713803f5
commit
cda1e943eb
3 changed files with 90734 additions and 93 deletions
90492
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230418193116_3538.Designer.cs
generated
Normal file
90492
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230418193116_3538.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,204 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _3538 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2539L, 166L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2540L, 166L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2539L, 6L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2540L, 6L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2539L, 2L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2539L, 3L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2539L, 6L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2539L, 7L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2539L, 11L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2540L, 6L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2540L, 7L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2539L, 2758L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2540L, 2759L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2539L);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2540L);
|
||||
|
||||
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[] { 2654L, null, "Compilation of filters for AdGuard Home", null, null, null, "https://github.com/ammnt/DeadEnd", true, "https://github.com/ammnt/DeadEnd/issues", 4L, "Dead End", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[] { 2654L, 166L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 2654L, 6L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2654L, 2L },
|
||||
{ 2654L, 3L }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "segment_number", "url" },
|
||||
values: new object[] { 2654L, 2932L, (short)1, (short)1, "https://raw.githubusercontent.com/ammnt/DeadEnd/main/filter.txt" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2654L, 166L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2654L, 6L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2654L, 2L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2654L, 3L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2654L, 2932L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2654L);
|
||||
|
||||
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[,]
|
||||
{
|
||||
{ 2539L, null, "The family filter for AdGuard Home", null, "contact@ammnt.app", null, "https://ammnt.app/", true, "https://github.com/AmmoniteFilter/AmmoniteFilter/issues", 4L, "AmmoniteFilter", null, null, null },
|
||||
{ 2540L, null, "The security filter for AdGuard Home", null, "contact@ammnt.app", null, "https://ammnt.app/", true, "https://github.com/AmmoniteFilter/TrilobiteFilter/issues", 4L, "TrilobiteFilter", null, null, null }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2539L, 166L },
|
||||
{ 2540L, 166L }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2539L, 6L },
|
||||
{ 2540L, 6L }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2539L, 2L },
|
||||
{ 2539L, 3L },
|
||||
{ 2539L, 6L },
|
||||
{ 2539L, 7L },
|
||||
{ 2539L, 11L },
|
||||
{ 2540L, 6L },
|
||||
{ 2540L, 7L }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2539L, 2758L, (short)1, "https://ammnt.app/filter.txt" },
|
||||
{ 2540L, 2759L, (short)1, "https://raw.githubusercontent.com/AmmoniteFilter/TrilobiteFilter/main/filter.txt" }
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -21359,28 +21359,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Name = "The malicious website blocklist (HOSTs file)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2539L,
|
||||
Description = "The family filter for AdGuard Home",
|
||||
EmailAddress = "contact@ammnt.app",
|
||||
HomeUrl = "https://ammnt.app/",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/AmmoniteFilter/AmmoniteFilter/issues",
|
||||
LicenseId = 4L,
|
||||
Name = "AmmoniteFilter"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2540L,
|
||||
Description = "The security filter for AdGuard Home",
|
||||
EmailAddress = "contact@ammnt.app",
|
||||
HomeUrl = "https://ammnt.app/",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/AmmoniteFilter/TrilobiteFilter/issues",
|
||||
LicenseId = 4L,
|
||||
Name = "TrilobiteFilter"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2541L,
|
||||
Description = "This list aims to protect against scams, phishing, malware, and potentially unwanted programs (PUPs). It includes a version of vxvault.net's list, modified by me (iam-py-test) to work in adblockers. (Domains version)",
|
||||
|
|
@ -22494,6 +22472,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IsApproved = true,
|
||||
LicenseId = 5L,
|
||||
Name = "List of active DGA (domain generation algorithm) domains - General list (all types of threats)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2654L,
|
||||
Description = "Compilation of filters for AdGuard Home",
|
||||
HomeUrl = "https://github.com/ammnt/DeadEnd",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/ammnt/DeadEnd/issues",
|
||||
LicenseId = 4L,
|
||||
Name = "Dead End"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -34593,16 +34581,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
MaintainerId = 165L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539L,
|
||||
MaintainerId = 166L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2540L,
|
||||
MaintainerId = 166L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2541L,
|
||||
MaintainerId = 165L
|
||||
|
|
@ -35051,6 +35029,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2652L,
|
||||
MaintainerId = 165L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2654L,
|
||||
MaintainerId = 166L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -45669,16 +45652,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
SyntaxId = 1L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539L,
|
||||
SyntaxId = 6L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2540L,
|
||||
SyntaxId = 6L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2541L,
|
||||
SyntaxId = 2L
|
||||
|
|
@ -46257,6 +46230,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2652L,
|
||||
SyntaxId = 4L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2654L,
|
||||
SyntaxId = 6L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -61825,41 +61803,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
TagId = 7L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539L,
|
||||
TagId = 2L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539L,
|
||||
TagId = 3L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539L,
|
||||
TagId = 6L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539L,
|
||||
TagId = 7L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539L,
|
||||
TagId = 11L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2540L,
|
||||
TagId = 6L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2540L,
|
||||
TagId = 7L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2541L,
|
||||
TagId = 6L
|
||||
|
|
@ -62528,6 +62471,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2653L,
|
||||
TagId = 6L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2654L,
|
||||
TagId = 2L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2654L,
|
||||
TagId = 3L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -89037,22 +88990,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://iam-py-test.github.io/my_filters_001/Alternative list formats/antimalware_hosts.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2539L,
|
||||
Id = 2758L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://ammnt.app/filter.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2540L,
|
||||
Id = 2759L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/AmmoniteFilter/TrilobiteFilter/main/filter.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2541L,
|
||||
Id = 2760L,
|
||||
|
|
@ -90315,6 +90252,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)1,
|
||||
Url = "https://1275.ru/DGA/dga.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2654L,
|
||||
Id = 2932L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)1,
|
||||
Url = "https://raw.githubusercontent.com/ammnt/DeadEnd/main/filter.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue