feat(data): migrate PR #2873

This commit is contained in:
Azure Pipelines EF Migration Bot 2022-04-08 11:42:55 +00:00 committed by Collin M. Barrett
parent 48551cf3da
commit 25a21cd6a5
3 changed files with 87847 additions and 9 deletions

View file

@ -0,0 +1,71 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
public partial class _2873 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "filter_lists",
keyColumn: "id",
keyValue: 268L,
columns: new[] { "forum_url", "home_url" },
values: new object[] { null, "https://github.com/cjx82630/cjxlist/" });
migrationBuilder.UpdateData(
table: "filter_lists",
keyColumn: "id",
keyValue: 281L,
columns: new[] { "forum_url", "home_url" },
values: new object[] { null, "https://github.com/cjx82630/cjxlist/" });
migrationBuilder.UpdateData(
table: "filter_lists",
keyColumn: "id",
keyValue: 300L,
columns: new[] { "forum_url", "home_url", "issues_url" },
values: new object[] { null, "https://github.com/easylist/easylistchina", "https://github.com/easylist/easylistchina/issues" });
migrationBuilder.UpdateData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2111L,
columns: new[] { "forum_url", "home_url" },
values: new object[] { null, "https://github.com/cjx82630/cjxlist" });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "filter_lists",
keyColumn: "id",
keyValue: 268L,
columns: new[] { "forum_url", "home_url" },
values: new object[] { "https://abpchina.org/forum/forum.php", "https://abpchina.org/forum/forum.php?mod=viewthread&tid=29667" });
migrationBuilder.UpdateData(
table: "filter_lists",
keyColumn: "id",
keyValue: 281L,
columns: new[] { "forum_url", "home_url" },
values: new object[] { "https://abpchina.org/forum/forum.php", "https://abpchina.org/forum/forum.php?mod=viewthread&tid=29667" });
migrationBuilder.UpdateData(
table: "filter_lists",
keyColumn: "id",
keyValue: 300L,
columns: new[] { "forum_url", "home_url", "issues_url" },
values: new object[] { "https://abpchina.org/forum/forum.php", "https://abpchina.org/forum/forum.php?mod=viewthread&tid=29667", "https://github.com/easylist/easylistchina" });
migrationBuilder.UpdateData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2111L,
columns: new[] { "forum_url", "home_url" },
values: new object[] { "https://abpchina.org/forum/forum.php", "https://abpchina.org/forum/forum.php?mod=viewthread&tid=29667" });
}
}
}

View file

@ -2382,8 +2382,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 268L,
Description = "This is a lite version of EasyList. Only for Simplified Chinese language websites.",
EmailAddress = "cjxlist@gmail.com",
ForumUrl = "https://abpchina.org/forum/forum.php",
HomeUrl = "https://abpchina.org/forum/forum.php?mod=viewthread&tid=29667",
HomeUrl = "https://github.com/cjx82630/cjxlist/",
IsApproved = true,
IssuesUrl = "https://github.com/cjx82630/cjxlist/issues",
LicenseId = 34L,
@ -2480,8 +2479,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 281L,
Description = "Removes annoyances, self-promotion and privacy protection on Chinese websites.",
EmailAddress = "cjxlist@gmail.com",
ForumUrl = "https://abpchina.org/forum/forum.php",
HomeUrl = "https://abpchina.org/forum/forum.php?mod=viewthread&tid=29667",
HomeUrl = "https://github.com/cjx82630/cjxlist/",
IsApproved = true,
IssuesUrl = "https://github.com/cjx82630/cjxlist/issues",
LicenseId = 34L,
@ -2639,10 +2637,9 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 300L,
Description = "Chinese supplement for the EasyList filters.",
EmailAddress = "easylist.china@gmail.com",
ForumUrl = "https://abpchina.org/forum/forum.php",
HomeUrl = "https://abpchina.org/forum/forum.php?mod=viewthread&tid=29667",
HomeUrl = "https://github.com/easylist/easylistchina",
IsApproved = true,
IssuesUrl = "https://github.com/easylist/easylistchina",
IssuesUrl = "https://github.com/easylist/easylistchina/issues",
LicenseId = 4L,
Name = "EasyList China"
},
@ -17408,8 +17405,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 2111L,
Description = "Supplement for \"EasyList China+EasyList\" & \"EasyPrivacy\" & \"CJX's Annoyance List\". Removes Ads, Anti-adblock, Annoyances, Self-promotion & Privacy Protection on Chinese Websites",
EmailAddress = "cjxlist@gmail.com",
ForumUrl = "https://abpchina.org/forum/forum.php",
HomeUrl = "https://abpchina.org/forum/forum.php?mod=viewthread&tid=29667",
HomeUrl = "https://github.com/cjx82630/cjxlist",
IsApproved = true,
IssuesUrl = "https://github.com/cjx82630/cjxlist/issues",
LicenseId = 34L,