mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
Split Ultimate Hosts Blacklist Domains into 4 segment ViewUrls
Co-authored-by: collinbarrett <6483057+collinbarrett@users.noreply.github.com>
This commit is contained in:
parent
d7321bfab0
commit
05f2cbf5e4
4 changed files with 88595 additions and 3 deletions
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,59 @@
|
|||
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 SplitUltimateHostsBlacklistDomainsIntoSegments : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 694, 731 },
|
||||
column: "Url",
|
||||
value: "https://raw.githubusercontent.com/mitchellkrogza/Ultimate.Hosts.Blacklist/master/domains/domains0.list");
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrl",
|
||||
columns: new[] { "FilterListId", "Id", "Primariness", "SegmentNumber", "Url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 694, 3083, (short)1, (short)2, "https://raw.githubusercontent.com/mitchellkrogza/Ultimate.Hosts.Blacklist/master/domains/domains1.list" },
|
||||
{ 694, 3084, (short)1, (short)3, "https://raw.githubusercontent.com/mitchellkrogza/Ultimate.Hosts.Blacklist/master/domains/domains2.list" },
|
||||
{ 694, 3085, (short)1, (short)4, "https://raw.githubusercontent.com/mitchellkrogza/Ultimate.Hosts.Blacklist/master/domains/domains3.list" }
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 694, 3083 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 694, 3084 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 694, 3085 });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterListViewUrl",
|
||||
keyColumns: new[] { "FilterListId", "Id" },
|
||||
keyValues: new object[] { 694, 731 },
|
||||
column: "Url",
|
||||
value: "https://hosts.ubuntu101.co.za/domains.list");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -71329,8 +71329,8 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
FilterListId = 694,
|
||||
Id = 731,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://hosts.ubuntu101.co.za/domains.list"
|
||||
SegmentNumber = (short)1,
|
||||
Url = "https://raw.githubusercontent.com/mitchellkrogza/Ultimate.Hosts.Blacklist/master/domains/domains0.list"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -88259,6 +88259,30 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://www.threatsourcing.com/ppall.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 694,
|
||||
Id = 3083,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)2,
|
||||
Url = "https://raw.githubusercontent.com/mitchellkrogza/Ultimate.Hosts.Blacklist/master/domains/domains1.list"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 694,
|
||||
Id = 3084,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)3,
|
||||
Url = "https://raw.githubusercontent.com/mitchellkrogza/Ultimate.Hosts.Blacklist/master/domains/domains2.list"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 694,
|
||||
Id = 3085,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)4,
|
||||
Url = "https://raw.githubusercontent.com/mitchellkrogza/Ultimate.Hosts.Blacklist/master/domains/domains3.list"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -4191,7 +4191,8 @@
|
|||
"filterListId": 694,
|
||||
"id": 731,
|
||||
"primariness": 1,
|
||||
"url": "https://hosts.ubuntu101.co.za/domains.list"
|
||||
"segmentNumber": 1,
|
||||
"url": "https://raw.githubusercontent.com/mitchellkrogza/Ultimate.Hosts.Blacklist/master/domains/domains0.list"
|
||||
},
|
||||
{
|
||||
"filterListId": 696,
|
||||
|
|
@ -16899,5 +16900,26 @@
|
|||
"id": 3082,
|
||||
"primariness": 1,
|
||||
"url": "https://www.threatsourcing.com/ppall.txt"
|
||||
},
|
||||
{
|
||||
"filterListId": 694,
|
||||
"id": 3083,
|
||||
"primariness": 1,
|
||||
"segmentNumber": 2,
|
||||
"url": "https://raw.githubusercontent.com/mitchellkrogza/Ultimate.Hosts.Blacklist/master/domains/domains1.list"
|
||||
},
|
||||
{
|
||||
"filterListId": 694,
|
||||
"id": 3084,
|
||||
"primariness": 1,
|
||||
"segmentNumber": 3,
|
||||
"url": "https://raw.githubusercontent.com/mitchellkrogza/Ultimate.Hosts.Blacklist/master/domains/domains2.list"
|
||||
},
|
||||
{
|
||||
"filterListId": 694,
|
||||
"id": 3085,
|
||||
"primariness": 1,
|
||||
"segmentNumber": 4,
|
||||
"url": "https://raw.githubusercontent.com/mitchellkrogza/Ultimate.Hosts.Blacklist/master/domains/domains3.list"
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue