chore: migrate #4807

This commit is contained in:
Collin Barrett 2025-05-07 20:57:21 -05:00 committed by Collin Barrett
parent 51cef67f95
commit d1cf4b5579
3 changed files with 88194 additions and 0 deletions

View file

@ -0,0 +1,78 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class _4807 : 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[] { 2737, null, "A blocklist of Bolloré, alt-right and french fascist web sites.", null, null, null, "https://bloquebollore.codeberg.page/desarmons-bollore-et-l-extreme-droite.txt", "https://codeberg.org/BloqueBollore/pages/issues", 43, "French far-right blocklist", null, null, null });
migrationBuilder.InsertData(
table: "Maintainer",
columns: new[] { "Id", "EmailAddress", "Name", "TwitterHandle", "Url" },
values: new object[] { 199, null, "BloqueBollore", null, "https://codeberg.org/BloqueBollore/" });
migrationBuilder.InsertData(
table: "FilterListLanguage",
columns: new[] { "FilterListId", "LanguageId" },
values: new object[] { 2737, (short)47 });
migrationBuilder.InsertData(
table: "FilterListMaintainer",
columns: new[] { "FilterListId", "MaintainerId" },
values: new object[] { 2737, 199 });
migrationBuilder.InsertData(
table: "FilterListTag",
columns: new[] { "FilterListId", "TagId" },
values: new object[] { 2737, 25 });
migrationBuilder.InsertData(
table: "FilterListViewUrl",
columns: new[] { "FilterListId", "Id", "Primariness", "Url" },
values: new object[] { 2737, 3069, (short)1, "https://codeberg.org/BloqueBollore/pages/src/branch/main/desarmons-bollore-et-l-extreme-droite.txt" });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "FilterListLanguage",
keyColumns: new[] { "FilterListId", "LanguageId" },
keyValues: new object[] { 2737, (short)47 });
migrationBuilder.DeleteData(
table: "FilterListMaintainer",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 2737, 199 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 2737, 25 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2737, 3069 });
migrationBuilder.DeleteData(
table: "FilterList",
keyColumn: "Id",
keyValue: 2737);
migrationBuilder.DeleteData(
table: "Maintainer",
keyColumn: "Id",
keyValue: 199);
}
}
}

View file

@ -20295,6 +20295,15 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://github.com/I-I-IT/News-sidebard-and-related-article-remover/issues",
LicenseId = 4,
Name = "News debloater, distraction remover"
},
new
{
Id = 2737,
Description = "A blocklist of Bolloré, alt-right and french fascist web sites.",
HomeUrl = "https://bloquebollore.codeberg.page/desarmons-bollore-et-l-extreme-droite.txt",
IssuesUrl = "https://codeberg.org/BloqueBollore/pages/issues",
LicenseId = 43,
Name = "French far-right blocklist"
});
});
@ -24722,6 +24731,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2736,
LanguageId = (short)37
},
new
{
FilterListId = 2737,
LanguageId = (short)47
});
});
@ -32409,6 +32423,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2735,
MaintainerId = 198
},
new
{
FilterListId = 2737,
MaintainerId = 199
});
});
@ -60108,6 +60127,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2736,
TagId = 28
},
new
{
FilterListId = 2737,
TagId = 25
});
});
@ -62980,6 +63004,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 198,
Name = "Bundy01",
Url = "https://github.com/Bundy01"
},
new
{
Id = 199,
Name = "BloqueBollore",
Url = "https://codeberg.org/BloqueBollore/"
});
});
@ -87836,6 +87866,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
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"
},
new
{
FilterListId = 2737,
Id = 3069,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://codeberg.org/BloqueBollore/pages/src/branch/main/desarmons-bollore-et-l-extreme-droite.txt"
});
});