feat(data): migrate PR #2904

This commit is contained in:
Azure Pipelines EF Migration Bot 2022-04-15 17:55:02 +00:00 committed by Collin M. Barrett
parent 718bb77e0a
commit 5a36367708
3 changed files with 88526 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 _2904 : 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[] { 2586L, null, "stops traffic associated with domains known to be from the surveillance-for-hire firm Cytrox and related entities", null, null, null, "https://github.com/twcau/AdblockRules/", true, "https://github.com/twcau/AdblockRules/issues", 28L, "CytroxList", null, null, null });
migrationBuilder.InsertData(
table: "maintainers",
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
values: new object[] { 178L, null, true, "Michael H", null, "https://github.com/twcau" });
migrationBuilder.InsertData(
table: "filter_list_maintainers",
columns: new[] { "filter_list_id", "maintainer_id" },
values: new object[] { 2586L, 178L });
migrationBuilder.InsertData(
table: "filter_list_syntaxes",
columns: new[] { "filter_list_id", "syntax_id" },
values: new object[] { 2586L, 3L });
migrationBuilder.InsertData(
table: "filter_list_view_urls",
columns: new[] { "filter_list_id", "id", "primariness", "url" },
values: new object[] { 2586L, 2851L, (short)1, "https://raw.githubusercontent.com/twcau/AdblockRules/master/CytroxList" });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2586L, 178L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2586L, 3L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2586L, 2851L });
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2586L);
migrationBuilder.DeleteData(
table: "maintainers",
keyColumn: "id",
keyValue: 178L);
}
}
}

View file

@ -21986,6 +21986,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IsApproved = true,
LicenseId = 5L,
Name = "BlockListNetUA"
},
new
{
Id = 2586L,
Description = "stops traffic associated with domains known to be from the surveillance-for-hire firm Cytrox and related entities",
HomeUrl = "https://github.com/twcau/AdblockRules/",
IsApproved = true,
IssuesUrl = "https://github.com/twcau/AdblockRules/issues",
LicenseId = 28L,
Name = "CytroxList"
});
});
@ -34078,6 +34088,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2584L,
MaintainerId = 177L
},
new
{
FilterListId = 2586L,
MaintainerId = 178L
});
});
@ -45009,6 +45024,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2585L,
SyntaxId = 57L
},
new
{
FilterListId = 2586L,
SyntaxId = 3L
});
});
@ -64000,6 +64020,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IsApproved = true,
Name = "ThePirateNerd",
Url = "https://github.com/ThePirateNerd"
},
new
{
Id = 178L,
IsApproved = true,
Name = "Michael H",
Url = "https://github.com/twcau"
});
});
@ -88160,6 +88187,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://blocklist.net.ua/blocklist.csv"
},
new
{
FilterListId = 2586L,
Id = 2851L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/twcau/AdblockRules/master/CytroxList"
});
});