feat(data): migrate PR #2860

This commit is contained in:
Azure Pipelines EF Migration Bot 2022-03-29 17:12:01 +00:00 committed by Collin M. Barrett
parent bb43d9f78d
commit 9b180844ec
3 changed files with 88026 additions and 1 deletions

View file

@ -0,0 +1,164 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
public partial class _2860 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "filter_lists",
keyColumn: "id",
keyValue: 16L,
columns: new[] { "home_url", "issues_url" },
values: new object[] { "https://github.com/List-KR/List-KR", "https://github.com/List-KR/List-KR/issues" });
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[] { 2567L, null, "Filter that enables removing of ads and anti-adblock scripts from websites with Korean content.", null, null, null, "https://github.com/List-KR/List-KR", true, "https://github.com/List-KR/List-KR/issues", 4L, "List-KR uBO", null, null, null });
migrationBuilder.UpdateData(
table: "maintainers",
keyColumn: "id",
keyValue: 18L,
column: "email_address",
value: "ei@mgi.sh");
migrationBuilder.InsertData(
table: "maintainers",
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
values: new object[,]
{
{ 172L, "seia@outlook.kr", true, "seia-soto", null, "https://github.com/seia-soto" },
{ 173L, "green1052@protonmail.ch", true, "green1052", null, "https://github.com/green1052" }
});
migrationBuilder.InsertData(
table: "filter_list_languages",
columns: new[] { "filter_list_id", "language_id" },
values: new object[] { 2567L, 83L });
migrationBuilder.InsertData(
table: "filter_list_maintainers",
columns: new[] { "filter_list_id", "maintainer_id" },
values: new object[,]
{
{ 16L, 172L },
{ 16L, 173L },
{ 2567L, 18L },
{ 2567L, 167L },
{ 2567L, 172L },
{ 2567L, 173L }
});
migrationBuilder.InsertData(
table: "filter_list_syntaxes",
columns: new[] { "filter_list_id", "syntax_id" },
values: new object[] { 2567L, 21L });
migrationBuilder.InsertData(
table: "filter_list_tags",
columns: new[] { "filter_list_id", "tag_id" },
values: new object[,]
{
{ 2567L, 2L },
{ 2567L, 5L }
});
migrationBuilder.InsertData(
table: "filter_list_view_urls",
columns: new[] { "filter_list_id", "id", "url" },
values: new object[] { 2567L, 2834L, "https://github.com/List-KR/List-KR/raw/master/filter-uBO.txt" });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_languages",
keyColumns: new[] { "filter_list_id", "language_id" },
keyValues: new object[] { 2567L, 83L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 16L, 172L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 16L, 173L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2567L, 18L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2567L, 167L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2567L, 172L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2567L, 173L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2567L, 21L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2567L, 2L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2567L, 5L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2567L, 2834L });
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2567L);
migrationBuilder.DeleteData(
table: "maintainers",
keyColumn: "id",
keyValue: 172L);
migrationBuilder.DeleteData(
table: "maintainers",
keyColumn: "id",
keyValue: 173L);
migrationBuilder.UpdateData(
table: "filter_lists",
keyColumn: "id",
keyValue: 16L,
columns: new[] { "home_url", "issues_url" },
values: new object[] { "https://list-kr.github.io/", null });
migrationBuilder.UpdateData(
table: "maintainers",
keyColumn: "id",
keyValue: 18L,
column: "email_address",
value: null);
}
}
}

View file

@ -386,8 +386,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
Id = 16L,
Description = "Filter that enables removing of ads and anti-adblock scripts from websites with Korean content.",
HomeUrl = "https://list-kr.github.io/",
HomeUrl = "https://github.com/List-KR/List-KR",
IsApproved = true,
IssuesUrl = "https://github.com/List-KR/List-KR/issues",
LicenseId = 4L,
Name = "List-KR"
},
@ -21799,6 +21800,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Name = "My Privacy DNS - Porn Records Blacklist",
PolicyUrl = "https://mypdns.org/my-privacy-dns/porn-records/-/blob/master/README.md",
SubmissionUrl = "https://mypdns.org/my-privacy-dns/porn-records/-/issues"
},
new
{
Id = 2567L,
Description = "Filter that enables removing of ads and anti-adblock scripts from websites with Korean content.",
HomeUrl = "https://github.com/List-KR/List-KR",
IsApproved = true,
IssuesUrl = "https://github.com/List-KR/List-KR/issues",
LicenseId = 4L,
Name = "List-KR uBO"
});
});
@ -26490,6 +26501,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2566L,
LanguageId = 37L
},
new
{
FilterListId = 2567L,
LanguageId = 83L
});
});
@ -26618,6 +26634,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
MaintainerId = 167L
},
new
{
FilterListId = 16L,
MaintainerId = 172L
},
new
{
FilterListId = 16L,
MaintainerId = 173L
},
new
{
FilterListId = 17L,
MaintainerId = 19L
@ -33711,6 +33737,26 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2566L,
MaintainerId = 171L
},
new
{
FilterListId = 2567L,
MaintainerId = 18L
},
new
{
FilterListId = 2567L,
MaintainerId = 167L
},
new
{
FilterListId = 2567L,
MaintainerId = 172L
},
new
{
FilterListId = 2567L,
MaintainerId = 173L
});
});
@ -44547,6 +44593,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2565L,
SyntaxId = 56L
},
new
{
FilterListId = 2567L,
SyntaxId = 21L
});
});
@ -60333,6 +60384,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2566L,
TagId = 11L
},
new
{
FilterListId = 2567L,
TagId = 2L
},
new
{
FilterListId = 2567L,
TagId = 5L
});
});
@ -62354,6 +62415,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
new
{
Id = 18L,
EmailAddress = "ei@mgi.sh",
IsApproved = true,
Name = "RAIDEN",
Url = "https://github.com/Raiden-Ei"
@ -63457,6 +63519,22 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IsApproved = true,
Name = "Titom",
Url = "https://mypdns.org/Titomrock21"
},
new
{
Id = 172L,
EmailAddress = "seia@outlook.kr",
IsApproved = true,
Name = "seia-soto",
Url = "https://github.com/seia-soto"
},
new
{
Id = 173L,
EmailAddress = "green1052@protonmail.ch",
IsApproved = true,
Name = "green1052",
Url = "https://github.com/green1052"
});
});
@ -87458,6 +87536,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)4,
SegmentNumber = (short)5,
Url = "https://gitlab.com/MypDNS/porn-records/-/raw/master/submit_here/adult.mypdns.cloud/snuff.list"
},
new
{
FilterListId = 2567L,
Id = 2834L,
Primariness = (short)0,
SegmentNumber = (short)0,
Url = "https://github.com/List-KR/List-KR/raw/master/filter-uBO.txt"
});
});