mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3668
This commit is contained in:
parent
e312f549b2
commit
bd48535e26
3 changed files with 90873 additions and 0 deletions
90755
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230531131600_3668.Designer.cs
generated
Normal file
90755
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230531131600_3668.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,78 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _3668 : 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[] { 2660L, null, "This list aims to prevent the pathetic excuses of domain endings (.zip and .mov) that Google recently added from causing phishing from being conducted using the old authentication URL scheme which is embedded into browsers", null, null, null, "https://github.com/L8X/AntiAuthenticationUrlFilter", true, "https://github.com/L8X/AntiAuthenticationUrlFilter/issues", 4L, "Anti-Authentication-Url-Filter", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "maintainers",
|
||||
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
|
||||
values: new object[] { 190L, null, true, "L8X", null, "https://github.com/L8X" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[] { 2660L, 190L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 2660L, 4L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 2660L, 7L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "url" },
|
||||
values: new object[] { 2660L, 2939L, "https://raw.githubusercontent.com/L8X/AntiAuthenticationUrlFilter/main/AntiAuthenticationUrlFilter.txt" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2660L, 190L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2660L, 4L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2660L, 7L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2660L, 2939L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2660L);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "maintainers",
|
||||
keyColumn: "id",
|
||||
keyValue: 190L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -22533,6 +22533,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/www-k9/hosts/issues",
|
||||
LicenseId = 2L,
|
||||
Name = "WWW-K9"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2660L,
|
||||
Description = "This list aims to prevent the pathetic excuses of domain endings (.zip and .mov) that Google recently added from causing phishing from being conducted using the old authentication URL scheme which is embedded into browsers",
|
||||
HomeUrl = "https://github.com/L8X/AntiAuthenticationUrlFilter",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/L8X/AntiAuthenticationUrlFilter/issues",
|
||||
LicenseId = 4L,
|
||||
Name = "Anti-Authentication-Url-Filter"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -35120,6 +35130,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2659L,
|
||||
MaintainerId = 189L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2660L,
|
||||
MaintainerId = 190L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -46346,6 +46361,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2659L,
|
||||
SyntaxId = 1L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2660L,
|
||||
SyntaxId = 4L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -62627,6 +62647,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2659L,
|
||||
TagId = 11L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2660L,
|
||||
TagId = 7L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -65875,6 +65900,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IsApproved = true,
|
||||
Name = "www-k9",
|
||||
Url = "https://github.com/www-k9"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 190L,
|
||||
IsApproved = true,
|
||||
Name = "L8X",
|
||||
Url = "https://github.com/L8X"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -90483,6 +90515,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)0,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/www-k9/hosts/master/hosts"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2660L,
|
||||
Id = 2939L,
|
||||
Primariness = (short)0,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/L8X/AntiAuthenticationUrlFilter/main/AntiAuthenticationUrlFilter.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue