Update AdblockID URLs to fix dead links

Co-authored-by: collinbarrett <6483057+collinbarrett@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot] 2025-07-29 02:31:05 +00:00 committed by Collin Barrett
parent 9c5c5ab96a
commit 5df353adaf
4 changed files with 88032 additions and 4 deletions

View file

@ -0,0 +1,46 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class UpdateAdblockIdUrls : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 728, 760 },
column: "Url",
value: "https://raw.githubusercontent.com/realodix/AdBlockID/main/dist/adblockid.adfl.txt");
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2289, 2434 },
column: "Url",
value: "https://raw.githubusercontent.com/realodix/AdBlockID/main/dist/adblockid_plus.adfl.txt");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 728, 760 },
column: "Url",
value: "https://raw.githubusercontent.com/realodix/AdBlockID/master/output/adblockid.txt");
migrationBuilder.UpdateData(
table: "FilterListViewUrl",
keyColumns: new[] { "FilterListId", "Id" },
keyValues: new object[] { 2289, 2434 },
column: "Url",
value: "https://raw.githubusercontent.com/realodix/AdBlockID-Adult/master/AdBlockID_Adult.txt");
}
}
}

View file

@ -71169,7 +71169,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 760,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/realodix/AdBlockID/master/output/adblockid.txt"
Url = "https://raw.githubusercontent.com/realodix/AdBlockID/main/dist/adblockid.adfl.txt"
},
new
{
@ -82993,7 +82993,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 2434,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/realodix/AdBlockID-Adult/master/AdBlockID_Adult.txt"
Url = "https://raw.githubusercontent.com/realodix/AdBlockID/main/dist/adblockid_plus.adfl.txt"
},
new
{

View file

@ -4359,7 +4359,7 @@
"filterListId": 728,
"id": 760,
"primariness": 1,
"url": "https://raw.githubusercontent.com/realodix/AdBlockID/master/output/adblockid.txt"
"url": "https://raw.githubusercontent.com/realodix/AdBlockID/main/dist/adblockid.adfl.txt"
},
{
"filterListId": 729,
@ -13227,7 +13227,7 @@
"filterListId": 2289,
"id": 2434,
"primariness": 1,
"url": "https://raw.githubusercontent.com/realodix/AdBlockID-Adult/master/AdBlockID_Adult.txt"
"url": "https://raw.githubusercontent.com/realodix/AdBlockID/main/dist/adblockid_plus.adfl.txt"
},
{
"filterListId": 2290,