feat(data): migrate PR #3285

This commit is contained in:
Azure Pipelines EF Migration Bot 2022-10-01 14:26:16 +00:00 committed by Collin M. Barrett
parent 866c0834f1
commit 45dd52f091
3 changed files with 89679 additions and 0 deletions

View file

@ -0,0 +1,65 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
public partial class _3285 : Migration
{
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[] { 2612L, null, "Conversion Syntax of AdAway Default Blocklist for AdGuard.", null, null, null, "https://github.com/Leaf16591/AdAway-Default-Blocklist-AdGuard-Version", true, "https://github.com/Leaf16591/AdAway-Default-Blocklist-AdGuard-Version/issues", 5L, "AdAway Default Blocklist (AdGuard Version)", null, null, null });
migrationBuilder.InsertData(
table: "maintainers",
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
values: new object[] { 184L, null, true, "Matteo", null, "https://github.com/Leaf16591" });
migrationBuilder.InsertData(
table: "filter_list_maintainers",
columns: new[] { "filter_list_id", "maintainer_id" },
values: new object[] { 2612L, 184L });
migrationBuilder.InsertData(
table: "filter_list_syntaxes",
columns: new[] { "filter_list_id", "syntax_id" },
values: new object[] { 2612L, 6L });
migrationBuilder.InsertData(
table: "filter_list_view_urls",
columns: new[] { "filter_list_id", "id", "primariness", "url" },
values: new object[] { 2612L, 2879L, (short)1, "https://raw.githubusercontent.com/Leaf16591/AdAway-Default-Blocklist-AdGuard-Version/main/Host" });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2612L, 184L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2612L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2612L, 2879L });
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2612L);
migrationBuilder.DeleteData(
table: "maintainers",
keyColumn: "id",
keyValue: 184L);
}
}
}

View file

@ -22213,6 +22213,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://github.com/DandelionSprout/adfilt/issues",
LicenseId = 35L,
Name = "deviantART Quality Art Magnifier"
},
new
{
Id = 2612L,
Description = "Conversion Syntax of AdAway Default Blocklist for AdGuard.",
HomeUrl = "https://github.com/Leaf16591/AdAway-Default-Blocklist-AdGuard-Version",
IsApproved = true,
IssuesUrl = "https://github.com/Leaf16591/AdAway-Default-Blocklist-AdGuard-Version/issues",
LicenseId = 5L,
Name = "AdAway Default Blocklist (AdGuard Version)"
});
});
@ -34555,6 +34565,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2611L,
MaintainerId = 22L
},
new
{
FilterListId = 2612L,
MaintainerId = 184L
});
});
@ -45616,6 +45631,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2611L,
SyntaxId = 4L
},
new
{
FilterListId = 2612L,
SyntaxId = 6L
});
});
@ -64929,6 +64949,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IsApproved = true,
Name = "MasterKia",
Url = "https://github.com/MasterKia"
},
new
{
Id = 184L,
IsApproved = true,
Name = "Matteo",
Url = "https://github.com/Leaf16591"
});
});
@ -89313,6 +89340,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)2,
SegmentNumber = (short)0,
Url = "https://gitlab.com/DandelionSprout/adfilt/-/raw/master/DeviantARTQualityArtMagnifier.txt"
},
new
{
FilterListId = 2612L,
Id = 2879L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/Leaf16591/AdAway-Default-Blocklist-AdGuard-Version/main/Host"
});
});