feat(data): migrate PR #2573

This commit is contained in:
Azure Pipelines EF Migration Bot 2021-10-04 16:34:02 +00:00 committed by Collin M. Barrett
parent 82be2e9d3c
commit 0a00a46b25
3 changed files with 85691 additions and 0 deletions

View file

@ -0,0 +1,53 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
public partial class _2573 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "FilterLists",
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
values: new object[] { 2535, null, "Never enter the rabbit hole again - Blocks all video suggestions and distractions on YouTube, leaves Likes and Comments on", "https://ko-fi.com/hadig", null, null, "https://github.com/hadig/Focus-for-Youtube", "https://github.com/hadig/Focus-for-Youtube/issues", null, "Focus for Youtube", null, null, null });
migrationBuilder.InsertData(
table: "Maintainers",
columns: new[] { "Id", "EmailAddress", "Name", "TwitterHandle", "Url" },
values: new object[] { 164, null, "hadiG", "hadigz1", "https://github.com/hadig" });
migrationBuilder.InsertData(
table: "FilterListMaintainers",
columns: new[] { "FilterListId", "MaintainerId" },
values: new object[] { 2535, 164 });
migrationBuilder.InsertData(
table: "FilterListViewUrls",
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
values: new object[] { 2751, 2535, (short)1, "https://raw.githubusercontent.com/hadig/Focus-for-Youtube/master/focus4yt.txt" });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "FilterListMaintainers",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 2535, 164 });
migrationBuilder.DeleteData(
table: "FilterListViewUrls",
keyColumn: "Id",
keyValue: 2751);
migrationBuilder.DeleteData(
table: "FilterLists",
keyColumn: "Id",
keyValue: 2535);
migrationBuilder.DeleteData(
table: "Maintainers",
keyColumn: "Id",
keyValue: 164);
}
}
}

View file

@ -19758,6 +19758,15 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://github.com/DandelionSprout/adfilt/issues",
LicenseId = 35,
Name = "Dandelion Sprout's and other adblocker lists' IPs"
},
new
{
Id = 2535,
Description = "Never enter the rabbit hole again - Blocks all video suggestions and distractions on YouTube, leaves Likes and Comments on",
DonateUrl = "https://ko-fi.com/hadig",
HomeUrl = "https://github.com/hadig/Focus-for-Youtube",
IssuesUrl = "https://github.com/hadig/Focus-for-Youtube/issues",
Name = "Focus for Youtube"
});
});
@ -31837,6 +31846,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2534,
MaintainerId = 22
},
new
{
FilterListId = 2535,
MaintainerId = 164
});
});
@ -80568,6 +80582,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)4,
SegmentNumber = (short)0,
Url = "https://downloads.vivaldi.com/easylist/easylist-current.txt"
},
new
{
Id = 2751,
FilterListId = 2535,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/hadig/Focus-for-Youtube/master/focus4yt.txt"
});
});
@ -83026,6 +83048,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 163,
Name = "JohnyP",
Url = "https://github.com/JohnyP36"
},
new
{
Id = 164,
Name = "hadiG",
TwitterHandle = "hadigz1",
Url = "https://github.com/hadig"
});
});