feat(data): migrate PR #2903

This commit is contained in:
Azure Pipelines EF Migration Bot 2022-04-15 17:41:57 +00:00 committed by Collin M. Barrett
parent de4dcc4b2c
commit 84dc5da374
3 changed files with 88491 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 _2903 : 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[] { 2585L, null, "The BlockList project was created to become protection against negative influence of the harmful and potentially dangerous events on the Internet.", null, "office@blocklist.net.ua", null, "https://blocklist.net.ua/", true, null, 5L, "BlockListNetUA", null, null, null });
migrationBuilder.InsertData(
table: "syntaxes",
columns: new[] { "id", "description", "is_approved", "name", "url" },
values: new object[] { 57L, null, true, "CSV", "https://en.wikipedia.org/wiki/Comma-separated_values" });
migrationBuilder.InsertData(
table: "filter_list_languages",
columns: new[] { "filter_list_id", "language_id" },
values: new object[] { 2585L, 167L });
migrationBuilder.InsertData(
table: "filter_list_syntaxes",
columns: new[] { "filter_list_id", "syntax_id" },
values: new object[] { 2585L, 57L });
migrationBuilder.InsertData(
table: "filter_list_view_urls",
columns: new[] { "filter_list_id", "id", "primariness", "url" },
values: new object[] { 2585L, 2850L, (short)1, "https://blocklist.net.ua/blocklist.csv" });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_languages",
keyColumns: new[] { "filter_list_id", "language_id" },
keyValues: new object[] { 2585L, 167L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2585L, 57L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2585L, 2850L });
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2585L);
migrationBuilder.DeleteData(
table: "syntaxes",
keyColumn: "id",
keyValue: 57L);
}
}
}

View file

@ -21976,6 +21976,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://github.com/ThePirateNerd/Anti-Q/issues",
LicenseId = 5L,
Name = "Anti-Q"
},
new
{
Id = 2585L,
Description = "The BlockList project was created to become protection against negative influence of the harmful and potentially dangerous events on the Internet.",
EmailAddress = "office@blocklist.net.ua",
HomeUrl = "https://blocklist.net.ua/",
IsApproved = true,
LicenseId = 5L,
Name = "BlockListNetUA"
});
});
@ -26727,6 +26737,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2583L,
LanguageId = 179L
},
new
{
FilterListId = 2585L,
LanguageId = 167L
});
});
@ -44989,6 +45004,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2584L,
SyntaxId = 2L
},
new
{
FilterListId = 2585L,
SyntaxId = 57L
});
});
@ -66168,6 +66188,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IsApproved = true,
Name = "Polish Cookie Consent",
Url = "https://polishannoyancefilters.netlify.app/en/PolishCookieConsent/syntax/"
},
new
{
Id = 57L,
IsApproved = true,
Name = "CSV",
Url = "https://en.wikipedia.org/wiki/Comma-separated_values"
});
});
@ -88125,6 +88152,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/ThePirateNerd/Anti-Q/main/Anti-Q.txt"
},
new
{
FilterListId = 2585L,
Id = 2850L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://blocklist.net.ua/blocklist.csv"
});
});