feat(data): migrate PR #3536

This commit is contained in:
Azure Pipelines EF Migration Bot 2023-04-18 18:47:56 +00:00 committed by Collin Barrett
parent 76fc8bf56b
commit 139569ab8a
3 changed files with 90599 additions and 30 deletions

View file

@ -0,0 +1,72 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class _3536 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2619L, 185L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2619L, 3L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2619L, 2885L });
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2619L);
migrationBuilder.UpdateData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2618L,
column: "name",
value: "3rd Party Only Frame Blocking with Social Media and Google exceptions");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2618L,
column: "name",
value: "3rd Party only Frame Blocking with Social Media exceptions");
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[] { 2619L, null, "A bigger variant of Frame-Blocker-Filter. This variant-filter is designed to block non-essential Frames.", null, null, null, "https://github.com/thedoggybrad/Non-Essential-Frames-Blocker", true, "https://github.com/thedoggybrad/Non-Essential-Frames-Blocker/issues", 17L, "Non-Essential-Frames-Blocker", null, null, null });
migrationBuilder.InsertData(
table: "filter_list_maintainers",
columns: new[] { "filter_list_id", "maintainer_id" },
values: new object[] { 2619L, 185L });
migrationBuilder.InsertData(
table: "filter_list_syntaxes",
columns: new[] { "filter_list_id", "syntax_id" },
values: new object[] { 2619L, 3L });
migrationBuilder.InsertData(
table: "filter_list_view_urls",
columns: new[] { "filter_list_id", "id", "primariness", "url" },
values: new object[] { 2619L, 2885L, (short)1, "https://raw.githubusercontent.com/thedoggybrad/Non-Essential-Frames-Blocker/main/filter.txt" });
}
}
}

View file

@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder
.HasAnnotation("ProductVersion", "7.0.4")
.HasAnnotation("ProductVersion", "7.0.5")
.HasAnnotation("Relational:MaxIdentifierLength", 63);
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "aggregate_type", new[] { "filter_list", "language", "license", "maintainer", "software", "syntax", "tag" });
@ -22147,17 +22147,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IsApproved = true,
IssuesUrl = "https://github.com/thedoggybrad/Frame-Blocker-Filter/issues",
LicenseId = 17L,
Name = "3rd Party only Frame Blocking with Social Media exceptions"
},
new
{
Id = 2619L,
Description = "A bigger variant of Frame-Blocker-Filter. This variant-filter is designed to block non-essential Frames.",
HomeUrl = "https://github.com/thedoggybrad/Non-Essential-Frames-Blocker",
IsApproved = true,
IssuesUrl = "https://github.com/thedoggybrad/Non-Essential-Frames-Blocker/issues",
LicenseId = 17L,
Name = "Non-Essential-Frames-Blocker"
Name = "3rd Party Only Frame Blocking with Social Media and Google exceptions"
},
new
{
@ -34894,11 +34884,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
MaintainerId = 185L
},
new
{
FilterListId = 2619L,
MaintainerId = 185L
},
new
{
FilterListId = 2620L,
MaintainerId = 182L
@ -46085,11 +46070,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
SyntaxId = 3L
},
new
{
FilterListId = 2619L,
SyntaxId = 3L
},
new
{
FilterListId = 2620L,
SyntaxId = 2L
@ -89955,14 +89935,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Url = "https://raw.githubusercontent.com/thedoggybrad/Frame-Blocker-Filter/main/socialmedia-exception.txt"
},
new
{
FilterListId = 2619L,
Id = 2885L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/thedoggybrad/Non-Essential-Frames-Blocker/main/filter.txt"
},
new
{
FilterListId = 2620L,
Id = 2886L,