Update GameIndustry hosts to EU domain with multiple templates

Co-authored-by: collinbarrett <6483057+collinbarrett@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-07-29 03:29:25 +00:00 committed by Collin Barrett
parent 4ddea2906f
commit a3724f7b3d
8 changed files with 88234 additions and 6 deletions

View file

@ -0,0 +1,106 @@
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 UpdateGameIndustryHostsToEuDomain : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 1706,
columns: new[] { "HomeUrl", "IssuesUrl", "Name" },
values: new object[] { "https://hosts.gameindustry.eu/", "https://github.com/KodoPengin/GameIndustry-hosts-Template/issues", "GameIndustry.eu Hosts" });
migrationBuilder.InsertData(
table: "FilterListTag",
columns: new[] { "FilterListId", "TagId" },
values: new object[,]
{
{ 1706, 19 },
{ 1706, 20 }
});
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 1706, 1766 },
column: "Url",
value: "https://raw.githubusercontent.com/KodoPengin/GameIndustry-hosts-Template/master/Main-Template/hosts");
migrationBuilder.InsertData(
table: "FilterListViewUrl",
columns: new[] { "FilterListId", "Id", "Primariness", "Url" },
values: new object[,]
{
{ 1706, 3072, (short)2, "https://raw.githubusercontent.com/KodoPengin/GameIndustry-hosts-Template/master/Gaming-Full-Template/hosts" },
{ 1706, 3073, (short)3, "https://raw.githubusercontent.com/KodoPengin/GameIndustry-hosts-Template/master/Android-Mini-Template/hosts" }
});
migrationBuilder.InsertData(
table: "Maintainer",
columns: new[] { "Id", "EmailAddress", "Name", "TwitterHandle", "Url" },
values: new object[] { 201, null, "KodoPengin", null, "https://github.com/KodoPengin" });
migrationBuilder.InsertData(
table: "FilterListMaintainer",
columns: new[] { "FilterListId", "MaintainerId" },
values: new object[] { 1706, 201 });
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "FilterListMaintainer",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 1706, 201 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 1706, 19 });
migrationBuilder.DeleteData(
table: "FilterListTag",
keyColumns: new[] { "FilterListId", "TagId" },
keyValues: new object[] { 1706, 20 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 1706, 3072 });
migrationBuilder.DeleteData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 1706, 3073 });
migrationBuilder.DeleteData(
table: "Maintainer",
keyColumn: "Id",
keyValue: 201);
migrationBuilder.UpdateData(
table: "FilterList",
keyColumn: "Id",
keyValue: 1706,
columns: new[] { "HomeUrl", "IssuesUrl", "Name" },
values: new object[] { "https://gameindustry.de/", null, "GameIndustryDE Hosts" });
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 1706, 1766 },
column: "Url",
value: "https://www.gameindustry.eu/files/hosts.txt");
}
}
}

View file

@ -11910,9 +11910,10 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
Id = 1706,
Description = "Hosts file for blocking spyware, ads, analytics and tracking on German websites and domains.",
HomeUrl = "https://gameindustry.de/",
HomeUrl = "https://hosts.gameindustry.eu/",
IssuesUrl = "https://github.com/KodoPengin/GameIndustry-hosts-Template/issues",
LicenseId = 9,
Name = "GameIndustryDE Hosts"
Name = "GameIndustry.eu Hosts"
},
new
{
@ -29833,6 +29834,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
MaintainerId = 179
},
new
{
FilterListId = 1706,
MaintainerId = 201
},
new
{
FilterListId = 1728,
MaintainerId = 151
@ -53157,6 +53163,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
TagId = 6
},
new
{
FilterListId = 1706,
TagId = 19
},
new
{
FilterListId = 1706,
TagId = 20
},
new
{
FilterListId = 1707,
TagId = 2
@ -62989,6 +63005,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 200,
Name = "AdCrunchSoftware",
Url = "https://github.com/AdCrunchSoftware"
},
new
{
Id = 201,
Name = "KodoPengin",
Url = "https://github.com/KodoPengin"
});
});
@ -78683,7 +78705,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 1766,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://www.gameindustry.eu/files/hosts.txt"
Url = "https://raw.githubusercontent.com/KodoPengin/GameIndustry-hosts-Template/master/Main-Template/hosts"
},
new
{
@ -87812,6 +87834,22 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://filters.adtidy.org/extension/ublock/filters/23.txt"
},
new
{
FilterListId = 1706,
Id = 3072,
Primariness = (short)2,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/KodoPengin/GameIndustry-hosts-Template/master/Gaming-Full-Template/hosts"
},
new
{
FilterListId = 1706,
Id = 3073,
Primariness = (short)3,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/KodoPengin/GameIndustry-hosts-Template/master/Android-Mini-Template/hosts"
});
});

View file

@ -10440,10 +10440,11 @@
},
{
"description": "Hosts file for blocking spyware, ads, analytics and tracking on German websites and domains.",
"homeUrl": "https://gameindustry.de/",
"homeUrl": "https://hosts.gameindustry.eu/",
"id": 1706,
"issuesUrl": "https://github.com/KodoPengin/GameIndustry-hosts-Template/issues",
"licenseId": 9,
"name": "GameIndustryDE Hosts"
"name": "GameIndustry.eu Hosts"
},
{
"description": "Categorized hosts files for DNS based content blocking. This is meant to be used as a regional component of a more comprehensive hosts list, such as Steven Black's hosts.",

View file

@ -4059,6 +4059,10 @@
"filterListId": 1700,
"maintainerId": 179
},
{
"filterListId": 1706,
"maintainerId": 201
},
{
"filterListId": 1728,
"maintainerId": 151

View file

@ -7459,6 +7459,14 @@
"filterListId": 1706,
"tagId": 6
},
{
"filterListId": 1706,
"tagId": 19
},
{
"filterListId": 1706,
"tagId": 20
},
{
"filterListId": 1707,
"tagId": 2

View file

@ -9975,7 +9975,7 @@
"filterListId": 1706,
"id": 1766,
"primariness": 1,
"url": "https://www.gameindustry.eu/files/hosts.txt"
"url": "https://raw.githubusercontent.com/KodoPengin/GameIndustry-hosts-Template/master/Main-Template/hosts"
},
{
"filterListId": 1707,
@ -16833,5 +16833,17 @@
"id": 3071,
"primariness": 1,
"url": "https://filters.adtidy.org/extension/ublock/filters/23.txt"
},
{
"filterListId": 1706,
"id": 3072,
"primariness": 2,
"url": "https://raw.githubusercontent.com/KodoPengin/GameIndustry-hosts-Template/master/Gaming-Full-Template/hosts"
},
{
"filterListId": 1706,
"id": 3073,
"primariness": 3,
"url": "https://raw.githubusercontent.com/KodoPengin/GameIndustry-hosts-Template/master/Android-Mini-Template/hosts"
}
]

View file

@ -1033,5 +1033,10 @@
"id": 200,
"name": "AdCrunchSoftware",
"url": "https://github.com/AdCrunchSoftware"
},
{
"id": 201,
"name": "KodoPengin",
"url": "https://github.com/KodoPengin"
}
]