mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2477
This commit is contained in:
parent
0721b304f8
commit
c49ca7d578
3 changed files with 85722 additions and 0 deletions
85364
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210724062309_2477.Designer.cs
generated
Normal file
85364
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210724062309_2477.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,198 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2477 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterLists",
|
||||
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2514, null, "A blocklist of malicious URLs that are being used for malware distribution.", null, null, null, "https://gitlab.com/curben/urlhaus-filter", "https://gitlab.com/curben/urlhaus-filter/issues", 28, "urlhaus-filter (dnscrypt-proxy names)", null, null, null },
|
||||
{ 2515, null, "A blocklist of malicious URLs that are being used for malware distribution.", null, null, null, "https://gitlab.com/curben/urlhaus-filter", "https://gitlab.com/curben/urlhaus-filter/issues", 28, "urlhaus-filter (dnscrypt-proxy IPs)", null, null, null },
|
||||
{ 2516, null, "A blocklist of phishing websites. Based on PhishTank and OpenPhish.", null, null, null, "https://gitlab.com/curben/phishing-filter", "https://gitlab.com/curben/phishing-filter/issues", 8, "phishing-filter (dnscrypt-proxy names)", null, null, null },
|
||||
{ 2517, null, "A blocklist of phishing websites. Based on PhishTank and OpenPhish.", null, null, null, "https://gitlab.com/curben/phishing-filter", "https://gitlab.com/curben/phishing-filter/issues", 8, "phishing-filter (dnscrypt-proxy IPs)", null, null, null },
|
||||
{ 2518, null, "A block of websites that host potentially unwanted programs", null, null, null, "https://gitlab.com/curben/pup-filter", "https://gitlab.com/curben/pup-filter/issues", 3, "pup-filter (dnscrypt-proxy names)", null, null, null }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListMaintainers",
|
||||
columns: new[] { "FilterListId", "MaintainerId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2514, 158 },
|
||||
{ 2518, 158 },
|
||||
{ 2515, 158 },
|
||||
{ 2517, 158 },
|
||||
{ 2516, 158 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntaxes",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2518, 2 },
|
||||
{ 2517, 9 },
|
||||
{ 2516, 2 },
|
||||
{ 2515, 9 },
|
||||
{ 2514, 2 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTags",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2515, 6 },
|
||||
{ 2518, 6 },
|
||||
{ 2516, 7 },
|
||||
{ 2517, 7 },
|
||||
{ 2514, 6 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrls",
|
||||
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2728, 2516, (short)1, "https://curben.gitlab.io/malware-filter/phishing-filter-dnscrypt-blocked-names.txt" },
|
||||
{ 2726, 2514, (short)1, "https://curben.gitlab.io/malware-filter/urlhaus-filter-dnscrypt-blocked-names-online.txt" },
|
||||
{ 2729, 2517, (short)1, "https://curben.gitlab.io/malware-filter/phishing-filter-dnscrypt-blocked-ips.txt" },
|
||||
{ 2727, 2515, (short)1, "https://curben.gitlab.io/malware-filter/urlhaus-filter-dnscrypt-blocked-ips-online.txt" },
|
||||
{ 2730, 2518, (short)1, "https://curben.gitlab.io/malware-filter/pup-filter-dnscrypt-blocked-names.txt" }
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2514, 158 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2515, 158 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2516, 158 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2517, 158 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2518, 158 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2514, 2 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2515, 9 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2516, 2 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2517, 9 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2518, 2 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2514, 6 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2515, 6 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2516, 7 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2517, 7 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2518, 6 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2726);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2727);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2728);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2729);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2730);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2514);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2515);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2516);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2517);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2518);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19660,6 +19660,51 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/DRSDavidSoft/additional-hosts/issues",
|
||||
LicenseId = 2,
|
||||
Name = "Additional Hosts - Fake domains"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2514,
|
||||
Description = "A blocklist of malicious URLs that are being used for malware distribution.",
|
||||
HomeUrl = "https://gitlab.com/curben/urlhaus-filter",
|
||||
IssuesUrl = "https://gitlab.com/curben/urlhaus-filter/issues",
|
||||
LicenseId = 28,
|
||||
Name = "urlhaus-filter (dnscrypt-proxy names)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2515,
|
||||
Description = "A blocklist of malicious URLs that are being used for malware distribution.",
|
||||
HomeUrl = "https://gitlab.com/curben/urlhaus-filter",
|
||||
IssuesUrl = "https://gitlab.com/curben/urlhaus-filter/issues",
|
||||
LicenseId = 28,
|
||||
Name = "urlhaus-filter (dnscrypt-proxy IPs)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2516,
|
||||
Description = "A blocklist of phishing websites. Based on PhishTank and OpenPhish.",
|
||||
HomeUrl = "https://gitlab.com/curben/phishing-filter",
|
||||
IssuesUrl = "https://gitlab.com/curben/phishing-filter/issues",
|
||||
LicenseId = 8,
|
||||
Name = "phishing-filter (dnscrypt-proxy names)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2517,
|
||||
Description = "A blocklist of phishing websites. Based on PhishTank and OpenPhish.",
|
||||
HomeUrl = "https://gitlab.com/curben/phishing-filter",
|
||||
IssuesUrl = "https://gitlab.com/curben/phishing-filter/issues",
|
||||
LicenseId = 8,
|
||||
Name = "phishing-filter (dnscrypt-proxy IPs)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2518,
|
||||
Description = "A block of websites that host potentially unwanted programs",
|
||||
HomeUrl = "https://gitlab.com/curben/pup-filter",
|
||||
IssuesUrl = "https://gitlab.com/curben/pup-filter/issues",
|
||||
LicenseId = 3,
|
||||
Name = "pup-filter (dnscrypt-proxy names)"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -31734,6 +31779,31 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2513,
|
||||
MaintainerId = 161
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2514,
|
||||
MaintainerId = 158
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2515,
|
||||
MaintainerId = 158
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2516,
|
||||
MaintainerId = 158
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2517,
|
||||
MaintainerId = 158
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2518,
|
||||
MaintainerId = 158
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -42691,6 +42761,31 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2513,
|
||||
SyntaxId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2514,
|
||||
SyntaxId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2515,
|
||||
SyntaxId = 9
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2516,
|
||||
SyntaxId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2517,
|
||||
SyntaxId = 9
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2518,
|
||||
SyntaxId = 2
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -58643,6 +58738,31 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2513,
|
||||
TagId = 7
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2514,
|
||||
TagId = 6
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2515,
|
||||
TagId = 6
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2516,
|
||||
TagId = 7
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2517,
|
||||
TagId = 7
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2518,
|
||||
TagId = 6
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -80205,6 +80325,46 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/DRSDavidSoft/additional-hosts/master/domains/blacklist/fake-domains.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2726,
|
||||
FilterListId = 2514,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://curben.gitlab.io/malware-filter/urlhaus-filter-dnscrypt-blocked-names-online.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2727,
|
||||
FilterListId = 2515,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://curben.gitlab.io/malware-filter/urlhaus-filter-dnscrypt-blocked-ips-online.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2728,
|
||||
FilterListId = 2516,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://curben.gitlab.io/malware-filter/phishing-filter-dnscrypt-blocked-names.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2729,
|
||||
FilterListId = 2517,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://curben.gitlab.io/malware-filter/phishing-filter-dnscrypt-blocked-ips.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2730,
|
||||
FilterListId = 2518,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://curben.gitlab.io/malware-filter/pup-filter-dnscrypt-blocked-names.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue