chore: migrate #4806

This commit is contained in:
Collin Barrett 2025-05-06 17:41:16 -05:00 committed by Collin Barrett
parent 6cd292b179
commit 007b652156
3 changed files with 88203 additions and 0 deletions

View file

@ -0,0 +1,101 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class _4806 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "FilterList",
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
values: new object[] { 2736, null, "Hides distracting elements on news websites (hides sidebar with top articles, end of article recommendation, and more)", null, null, null, "https: //github.com/I-I-IT/News-sidebard-and-related-article-remover", "https://github.com/I-I-IT/News-sidebard-and-related-article-remover/issues", 4, "News debloater, distraction remover", null, null, null });
migrationBuilder.InsertData(
table: "FilterListLanguage",
columns: new[] { "FilterListId", "LanguageId" },
values: new object[] { 2736, (short)37 });
migrationBuilder.InsertData(
table: "FilterListMaintainer",
columns: new[] { "FilterListId", "MaintainerId" },
values: new object[] { 2736, 199 });
migrationBuilder.InsertData(
table: "FilterListSyntax",
columns: new[] { "FilterListId", "SyntaxId" },
values: new object[] { 2736, (short)4 });
migrationBuilder.InsertData(
table: "FilterListTag",
columns: new[] { "FilterListId", "TagId" },
values: new object[,]
{
{ 2736, 9 },
{ 2736, 15 },
{ 2736, 28 },
{ 2736, 42 }
});
migrationBuilder.InsertData(
table: "FilterListViewUrl",
columns: new[] { "FilterListId", "Id", "Primariness", "Url" },
values: new object[] { 2736, 3068, (short)1, "https://raw.githubusercontent.com/I-I-IT/News-sidebard-and-related-article-remover/refs/heads/main/filters.txt" });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "FilterListLanguage",
keyColumns: new[] { "FilterListId", "LanguageId" },
keyValues: new object[] { 2736, (short)37 });
migrationBuilder.DeleteData(
table: "FilterListMaintainer",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 2736, 199 });
migrationBuilder.DeleteData(
table: "FilterListSyntax",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 2736, (short)4 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2736, 9 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2736, 15 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2736, 28 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2736, 42 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2736, 3068 });
migrationBuilder.DeleteData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2736);
}
}
}

View file

@ -20286,6 +20286,15 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://github.com/Bundy01/meta-blocklists/issues",
LicenseId = 4,
Name = "Meta Unbound"
},
new
{
Id = 2736,
Description = "Hides distracting elements on news websites (hides sidebar with top articles, end of article recommendation, and more)",
HomeUrl = "https: //github.com/I-I-IT/News-sidebard-and-related-article-remover",
IssuesUrl = "https://github.com/I-I-IT/News-sidebard-and-related-article-remover/issues",
LicenseId = 4,
Name = "News debloater, distraction remover"
});
});
@ -24708,6 +24717,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2730,
LanguageId = (short)37
},
new
{
FilterListId = 2736,
LanguageId = (short)37
});
});
@ -32395,6 +32409,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2735,
MaintainerId = 198
},
new
{
FilterListId = 2736,
MaintainerId = 199
});
});
@ -43767,6 +43786,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2735,
SyntaxId = (short)24
},
new
{
FilterListId = 2736,
SyntaxId = (short)4
});
});
@ -60074,6 +60098,26 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2735,
TagId = 19
},
new
{
FilterListId = 2736,
TagId = 15
},
new
{
FilterListId = 2736,
TagId = 9
},
new
{
FilterListId = 2736,
TagId = 28
},
new
{
FilterListId = 2736,
TagId = 42
});
});
@ -87794,6 +87838,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/Bundy01/meta-blocklists/refs/heads/main/meta-unbound.txt"
},
new
{
FilterListId = 2736,
Id = 3068,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/I-I-IT/News-sidebard-and-related-article-remover/refs/heads/main/filters.txt"
});
});