mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3503
This commit is contained in:
parent
ae0f016bbd
commit
07b3e873e3
3 changed files with 90803 additions and 6 deletions
90631
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230404222243_3503.Designer.cs
generated
Normal file
90631
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230404222243_3503.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,121 @@
|
|||
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 _3503 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2537L,
|
||||
columns: new[] { "description", "email_address", "name" },
|
||||
values: new object[] { "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.", "iam-py-test@protonmail.com", "The malicious website blocklist" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2538L,
|
||||
columns: new[] { "description", "email_address", "name" },
|
||||
values: new object[] { "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. (HOSTs version - not for uBlock Origin)", "iam-py-test@protonmail.com", "The malicious website blocklist (HOSTs file)" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2541L,
|
||||
columns: new[] { "description", "email_address", "name" },
|
||||
values: new object[] { "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)", "iam-py-test@protonmail.com", "The malicious website blocklist (Domains)" });
|
||||
|
||||
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[] { 2652L, null, "VXVault's list of URLs serving malware, converted into a filterlist", null, "iam-py-test@protonmail.com", null, "https://github.com/iam-py-test/vxvault_filter", true, "https://github.com/iam-py-test/vxvault_filter/issues", 28L, "VXVault filterlist (unofficial)", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[] { 2652L, 165L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 2652L, 4L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 2652L, 6L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2652L, 2924L, (short)1, "https://raw.githubusercontent.com/iam-py-test/vxvault_filter/main/ubolist.txt" },
|
||||
{ 2652L, 2925L, (short)2, "https://iam-py-test.github.io/vxvault_filter/ubolist.txt" }
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2652L, 165L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2652L, 4L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2652L, 6L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2652L, 2924L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2652L, 2925L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2652L);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2537L,
|
||||
columns: new[] { "description", "email_address", "name" },
|
||||
values: new object[] { "Block malware, phishing, and scams for a more secure computer", null, "Malicious website blocklist" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2538L,
|
||||
columns: new[] { "description", "email_address", "name" },
|
||||
values: new object[] { "Block malware, phishing, and scams for a more secure computer (HOSTS version - not for uBlock Origin)", null, "Malicious website blocklist (HOSTS)" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2541L,
|
||||
columns: new[] { "description", "email_address", "name" },
|
||||
values: new object[] { "Block malware, phishing, and scams for a more secure computer (Domains version)", null, "Malicious website blocklist (Domains)" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -21339,22 +21339,24 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
Id = 2537L,
|
||||
Description = "Block malware, phishing, and scams for a more secure computer",
|
||||
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.",
|
||||
EmailAddress = "iam-py-test@protonmail.com",
|
||||
HomeUrl = "https://github.com/iam-py-test/my_filters_001",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/iam-py-test/my_filters_001/issues",
|
||||
LicenseId = 28L,
|
||||
Name = "Malicious website blocklist"
|
||||
Name = "The malicious website blocklist"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2538L,
|
||||
Description = "Block malware, phishing, and scams for a more secure computer (HOSTS version - not for uBlock Origin)",
|
||||
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. (HOSTs version - not for uBlock Origin)",
|
||||
EmailAddress = "iam-py-test@protonmail.com",
|
||||
HomeUrl = "https://github.com/iam-py-test/my_filters_001",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/iam-py-test/my_filters_001/issues/",
|
||||
LicenseId = 28L,
|
||||
Name = "Malicious website blocklist (HOSTS)"
|
||||
Name = "The malicious website blocklist (HOSTs file)"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -21381,12 +21383,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
Id = 2541L,
|
||||
Description = "Block malware, phishing, and scams for a more secure computer (Domains version)",
|
||||
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)",
|
||||
EmailAddress = "iam-py-test@protonmail.com",
|
||||
HomeUrl = "https://github.com/iam-py-test/my_filters_001",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/iam-py-test/my_filters_001/issues/",
|
||||
LicenseId = 28L,
|
||||
Name = "Malicious website blocklist (Domains)"
|
||||
Name = "The malicious website blocklist (Domains)"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -22479,6 +22482,17 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/DandelionSprout/adfilt/issues",
|
||||
LicenseId = 35L,
|
||||
Name = "Anti-'Manifest V3' List"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2652L,
|
||||
Description = "VXVault's list of URLs serving malware, converted into a filterlist",
|
||||
EmailAddress = "iam-py-test@protonmail.com",
|
||||
HomeUrl = "https://github.com/iam-py-test/vxvault_filter",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/iam-py-test/vxvault_filter/issues",
|
||||
LicenseId = 28L,
|
||||
Name = "VXVault filterlist (unofficial)"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -35036,6 +35050,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2651L,
|
||||
MaintainerId = 22L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2652L,
|
||||
MaintainerId = 165L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -46242,6 +46261,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2651L,
|
||||
SyntaxId = 3L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2652L,
|
||||
SyntaxId = 4L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -62503,6 +62527,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2651L,
|
||||
TagId = 15L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2652L,
|
||||
TagId = 6L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -90354,6 +90383,22 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)4,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gh/JohnyP36/Personal-List/main/Personal List (uBo).txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2652L,
|
||||
Id = 2924L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/iam-py-test/vxvault_filter/main/ubolist.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2652L,
|
||||
Id = 2925L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://iam-py-test.github.io/vxvault_filter/ubolist.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue