feat(data): migrate PR #2900

This commit is contained in:
Azure Pipelines EF Migration Bot 2022-04-15 17:06:13 +00:00 committed by Collin M. Barrett
parent dda955c318
commit a9943e335b
3 changed files with 88436 additions and 0 deletions

View file

@ -0,0 +1,75 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
public partial class _2900 : 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[] { 2583L, null, "The CCP forces the public to install the tracking app", null, null, null, "https://github.com/sioxe823/Project-RnJlRUhL", true, "https://github.com/sioxe823/Project-RnJlRUhL/issues", 5L, "Project RnJlRUhL", null, null, null });
migrationBuilder.InsertData(
table: "maintainers",
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
values: new object[] { 176L, null, true, "sioxe823", null, "https://github.com/sioxe823" });
migrationBuilder.InsertData(
table: "filter_list_languages",
columns: new[] { "filter_list_id", "language_id" },
values: new object[] { 2583L, 179L });
migrationBuilder.InsertData(
table: "filter_list_maintainers",
columns: new[] { "filter_list_id", "maintainer_id" },
values: new object[] { 2583L, 176L });
migrationBuilder.InsertData(
table: "filter_list_syntaxes",
columns: new[] { "filter_list_id", "syntax_id" },
values: new object[] { 2583L, 6L });
migrationBuilder.InsertData(
table: "filter_list_view_urls",
columns: new[] { "filter_list_id", "id", "primariness", "url" },
values: new object[] { 2583L, 2848L, (short)1, "https://raw.githubusercontent.com/sioxe823/Project-RnJlRUhL/main/chinese_gov_forced_install.txt" });
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_languages",
keyColumns: new[] { "filter_list_id", "language_id" },
keyValues: new object[] { 2583L, 179L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2583L, 176L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2583L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2583L, 2848L });
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2583L);
migrationBuilder.DeleteData(
table: "maintainers",
keyColumn: "id",
keyValue: 176L);
}
}
}

View file

@ -21956,6 +21956,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://github.com/DevShubam/Whitelist/issues",
LicenseId = 2L,
Name = "Shub's Whitelist"
},
new
{
Id = 2583L,
Description = "The CCP forces the public to install the tracking app",
HomeUrl = "https://github.com/sioxe823/Project-RnJlRUhL",
IsApproved = true,
IssuesUrl = "https://github.com/sioxe823/Project-RnJlRUhL/issues",
LicenseId = 5L,
Name = "Project RnJlRUhL"
});
});
@ -26702,6 +26712,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2577L,
LanguageId = 171L
},
new
{
FilterListId = 2583L,
LanguageId = 179L
});
});
@ -34028,6 +34043,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2582L,
MaintainerId = 175L
},
new
{
FilterListId = 2583L,
MaintainerId = 176L
});
});
@ -44944,6 +44964,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2582L,
SyntaxId = 9L
},
new
{
FilterListId = 2583L,
SyntaxId = 6L
});
});
@ -63921,6 +63946,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IsApproved = true,
Name = "DevShubam",
Url = "https://github.com/DevShubam"
},
new
{
Id = 176L,
IsApproved = true,
Name = "sioxe823",
Url = "https://github.com/sioxe823"
});
});
@ -88050,6 +88082,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/DevShubam/Whitelist/master/whitelist.txt"
},
new
{
FilterListId = 2583L,
Id = 2848L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/sioxe823/Project-RnJlRUhL/main/chinese_gov_forced_install.txt"
});
});