feat(data): migrate PR #3564

This commit is contained in:
Azure Pipelines EF Migration Bot 2023-04-25 14:06:40 +00:00 committed by Collin Barrett
parent cb3f76b2f0
commit f40c8d9996
3 changed files with 90687 additions and 0 deletions

View file

@ -0,0 +1,78 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class _3564 : 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[] { 2656L, null, "This List Blocks Sites that steal Video Game Mods from their Authors and upload them illegally on their sites.", null, "blockmodreposting@rotgruengelb.net", null, "https://github.com/rotgruengelb/BlockModReposting", true, "https://github.com/rotgruengelb/BlockModReposting/issues", 8L, "BlockModReposting", null, null, null });
migrationBuilder.InsertData(
table: "maintainers",
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
values: new object[] { 187L, null, true, "rotgruengelb", null, "https://github.com/rotgruengelb" });
migrationBuilder.InsertData(
table: "filter_list_maintainers",
columns: new[] { "filter_list_id", "maintainer_id" },
values: new object[] { 2656L, 187L });
migrationBuilder.InsertData(
table: "filter_list_syntaxes",
columns: new[] { "filter_list_id", "syntax_id" },
values: new object[] { 2656L, 6L });
migrationBuilder.InsertData(
table: "filter_list_tags",
columns: new[] { "filter_list_id", "tag_id" },
values: new object[] { 2656L, 24L });
migrationBuilder.InsertData(
table: "filter_list_view_urls",
columns: new[] { "filter_list_id", "id", "primariness", "segment_number", "url" },
values: new object[] { 2656L, 2934L, (short)1, (short)1, "https://raw.githubusercontent.com/rotgruengelb/BlockModReposting/main/list.txt" });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2656L, 187L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2656L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2656L, 24L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2656L, 2934L });
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2656L);
migrationBuilder.DeleteData(
table: "maintainers",
keyColumn: "id",
keyValue: 187L);
}
}
}

View file

@ -22492,6 +22492,17 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://codeberg.org/badandugly/badandugly/issues",
LicenseId = 4L,
Name = "The Bad & The Ugly Blocklist (German)"
},
new
{
Id = 2656L,
Description = "This List Blocks Sites that steal Video Game Mods from their Authors and upload them illegally on their sites.",
EmailAddress = "blockmodreposting@rotgruengelb.net",
HomeUrl = "https://github.com/rotgruengelb/BlockModReposting",
IsApproved = true,
IssuesUrl = "https://github.com/rotgruengelb/BlockModReposting/issues",
LicenseId = 8L,
Name = "BlockModReposting"
});
});
@ -35044,6 +35055,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2655L,
MaintainerId = 168L
},
new
{
FilterListId = 2656L,
MaintainerId = 187L
});
});
@ -46250,6 +46266,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2655L,
SyntaxId = 6L
},
new
{
FilterListId = 2656L,
SyntaxId = 6L
});
});
@ -62501,6 +62522,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2655L,
TagId = 25L
},
new
{
FilterListId = 2656L,
TagId = 24L
});
});
@ -65727,6 +65753,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IsApproved = true,
Name = "BadAndUgly",
Url = "https://codeberg.org/badandugly"
},
new
{
Id = 187L,
IsApproved = true,
Name = "rotgruengelb",
Url = "https://github.com/rotgruengelb"
});
});
@ -90295,6 +90328,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)1,
SegmentNumber = (short)1,
Url = "https://codeberg.org/badandugly/badandugly/raw/branch/main/blocklist"
},
new
{
FilterListId = 2656L,
Id = 2934L,
Primariness = (short)1,
SegmentNumber = (short)1,
Url = "https://raw.githubusercontent.com/rotgruengelb/BlockModReposting/main/list.txt"
});
});