mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2756
This commit is contained in:
parent
28079f623c
commit
f48b90dec5
3 changed files with 87610 additions and 193 deletions
87443
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220109090829_2756.Designer.cs
generated
Normal file
87443
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220109090829_2756.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,166 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2756 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 1603L, 1628L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 1603L, 1629L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 1880L, 1952L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 1880L, 1953L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2165L, 2290L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2165L, 2291L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2167L, 2296L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2167L, 2297L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2169L, 2302L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2169L, 2303L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2171L, 2308L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2171L, 2309L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2323L, 2473L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2323L, 2474L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2324L, 2476L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2324L, 2477L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2325L, 2479L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2325L, 2480L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2326L, 2482L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2326L, 2483L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2327L, 2485L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2327L, 2486L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2328L, 2488L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2328L, 2489L });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "segment_number", "url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 1603L, 1628L, (short)2, (short)0, "https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-online.txt" },
|
||||
{ 1603L, 1629L, (short)3, (short)0, "https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-online.txt" },
|
||||
{ 1880L, 1952L, (short)2, (short)0, "https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-domains-online.txt" },
|
||||
{ 1880L, 1953L, (short)3, (short)0, "https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-domains-online.txt" },
|
||||
{ 2165L, 2290L, (short)2, (short)0, "https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-dnsmasq-online.conf" },
|
||||
{ 2165L, 2291L, (short)3, (short)0, "https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-dnsmasq-online.conf" },
|
||||
{ 2167L, 2296L, (short)2, (short)0, "https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-hosts-online.txt" },
|
||||
{ 2167L, 2297L, (short)3, (short)0, "https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-hosts-online.txt" },
|
||||
{ 2169L, 2302L, (short)2, (short)0, "https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-bind-online.conf" },
|
||||
{ 2169L, 2303L, (short)3, (short)0, "https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-bind-online.conf" },
|
||||
{ 2171L, 2308L, (short)2, (short)0, "https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-unbound-online.conf" },
|
||||
{ 2171L, 2309L, (short)3, (short)0, "https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-unbound-online.conf" },
|
||||
{ 2323L, 2473L, (short)2, (short)0, "https://cdn.statically.io/gl/curben/phishing-filter/master/dist/phishing-filter.txt" },
|
||||
{ 2323L, 2474L, (short)3, (short)0, "https://glcdn.githack.com/curben/phishing-filter/raw/master/dist/phishing-filter.txt" },
|
||||
{ 2324L, 2476L, (short)2, (short)0, "https://cdn.statically.io/gl/curben/phishing-filter/master/phishing-filter-domains.txt" },
|
||||
{ 2324L, 2477L, (short)3, (short)0, "https://glcdn.githack.com/curben/phishing-filter/raw/master/dist/phishing-filter-domains.txt" },
|
||||
{ 2325L, 2479L, (short)2, (short)0, "https://cdn.statically.io/gl/curben/phishing-filter/master/dist/phishing-filter-dnsmasq.conf" },
|
||||
{ 2325L, 2480L, (short)3, (short)0, "https://glcdn.githack.com/curben/phishing-filter/raw/master/dist/phishing-filter-dnsmasq.conf" },
|
||||
{ 2326L, 2482L, (short)2, (short)0, "https://cdn.statically.io/gl/curben/phishing-filter/master/dist/phishing-filter-hosts.txt" },
|
||||
{ 2326L, 2483L, (short)3, (short)0, "https://glcdn.githack.com/curben/phishing-filter/raw/master/dist/phishing-filter-hosts.txt" },
|
||||
{ 2327L, 2485L, (short)2, (short)0, "https://cdn.statically.io/gl/curben/phishing-filter/master/dist/phishing-filter-bind.conf" },
|
||||
{ 2327L, 2486L, (short)3, (short)0, "https://glcdn.githack.com/curben/phishing-filter/raw/master/dist/phishing-filter-bind.conf" },
|
||||
{ 2328L, 2488L, (short)2, (short)0, "https://cdn.statically.io/gl/curben/phishing-filter/master/dist/phishing-filter-unbound.conf" },
|
||||
{ 2328L, 2489L, (short)3, (short)0, "https://glcdn.githack.com/curben/phishing-filter/raw/master/dist/phishing-filter-unbound.conf" }
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19,7 +19,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
#pragma warning disable 612, 618
|
||||
modelBuilder
|
||||
.HasAnnotation("ProductVersion", "6.0.0")
|
||||
.HasAnnotation("ProductVersion", "6.0.1")
|
||||
.HasAnnotation("Relational:MaxIdentifierLength", 63);
|
||||
|
||||
NpgsqlModelBuilderExtensions.HasPostgresEnum(modelBuilder, "aggregate_type", new[] { "filter_list", "language", "license", "maintainer", "software", "syntax", "tag" });
|
||||
|
|
@ -78550,22 +78550,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://curben.gitlab.io/malware-filter/urlhaus-filter-online.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 1603L,
|
||||
Id = 1628L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-online.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 1603L,
|
||||
Id = 1629L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-online.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 1604L,
|
||||
Id = 1630L,
|
||||
|
|
@ -80990,22 +80974,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://curben.gitlab.io/malware-filter/urlhaus-filter-domains-online.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 1880L,
|
||||
Id = 1952L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-domains-online.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 1880L,
|
||||
Id = 1953L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-domains-online.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 1881L,
|
||||
Id = 1954L,
|
||||
|
|
@ -83454,22 +83422,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://curben.gitlab.io/malware-filter/urlhaus-filter-dnsmasq-online.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2165L,
|
||||
Id = 2290L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-dnsmasq-online.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2165L,
|
||||
Id = 2291L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-dnsmasq-online.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2167L,
|
||||
Id = 2295L,
|
||||
|
|
@ -83478,22 +83430,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://curben.gitlab.io/malware-filter/urlhaus-filter-hosts-online.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2167L,
|
||||
Id = 2296L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-hosts-online.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2167L,
|
||||
Id = 2297L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-hosts-online.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2169L,
|
||||
Id = 2301L,
|
||||
|
|
@ -83502,22 +83438,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://curben.gitlab.io/malware-filter/urlhaus-filter-bind-online.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2169L,
|
||||
Id = 2302L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-bind-online.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2169L,
|
||||
Id = 2303L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-bind-online.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2171L,
|
||||
Id = 2307L,
|
||||
|
|
@ -83526,22 +83446,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://curben.gitlab.io/malware-filter/urlhaus-filter-unbound-online.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2171L,
|
||||
Id = 2308L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/curben/urlhaus-filter/master/urlhaus-filter-unbound-online.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2171L,
|
||||
Id = 2309L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://glcdn.githack.com/curben/urlhaus-filter/raw/master/urlhaus-filter-unbound-online.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2172L,
|
||||
Id = 2310L,
|
||||
|
|
@ -84718,22 +84622,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://curben.gitlab.io/malware-filter/phishing-filter.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2323L,
|
||||
Id = 2473L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/curben/phishing-filter/master/dist/phishing-filter.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2323L,
|
||||
Id = 2474L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://glcdn.githack.com/curben/phishing-filter/raw/master/dist/phishing-filter.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2324L,
|
||||
Id = 2475L,
|
||||
|
|
@ -84742,22 +84630,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://curben.gitlab.io/malware-filter/phishing-filter-domains.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2324L,
|
||||
Id = 2476L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/curben/phishing-filter/master/phishing-filter-domains.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2324L,
|
||||
Id = 2477L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://glcdn.githack.com/curben/phishing-filter/raw/master/dist/phishing-filter-domains.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2325L,
|
||||
Id = 2478L,
|
||||
|
|
@ -84766,22 +84638,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://curben.gitlab.io/malware-filter/phishing-filter-dnsmasq.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2325L,
|
||||
Id = 2479L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/curben/phishing-filter/master/dist/phishing-filter-dnsmasq.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2325L,
|
||||
Id = 2480L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://glcdn.githack.com/curben/phishing-filter/raw/master/dist/phishing-filter-dnsmasq.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2326L,
|
||||
Id = 2481L,
|
||||
|
|
@ -84790,22 +84646,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://curben.gitlab.io/malware-filter/phishing-filter-hosts.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2326L,
|
||||
Id = 2482L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/curben/phishing-filter/master/dist/phishing-filter-hosts.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2326L,
|
||||
Id = 2483L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://glcdn.githack.com/curben/phishing-filter/raw/master/dist/phishing-filter-hosts.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2327L,
|
||||
Id = 2484L,
|
||||
|
|
@ -84814,22 +84654,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://curben.gitlab.io/malware-filter/phishing-filter-bind.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2327L,
|
||||
Id = 2485L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/curben/phishing-filter/master/dist/phishing-filter-bind.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2327L,
|
||||
Id = 2486L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://glcdn.githack.com/curben/phishing-filter/raw/master/dist/phishing-filter-bind.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2328L,
|
||||
Id = 2487L,
|
||||
|
|
@ -84838,22 +84662,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Url = "https://curben.gitlab.io/malware-filter/phishing-filter-unbound.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2328L,
|
||||
Id = 2488L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gl/curben/phishing-filter/master/dist/phishing-filter-unbound.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2328L,
|
||||
Id = 2489L,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://glcdn.githack.com/curben/phishing-filter/raw/master/dist/phishing-filter-unbound.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2329L,
|
||||
Id = 2490L,
|
||||
|
|
|
|||
Loading…
Reference in a new issue