mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3286
This commit is contained in:
parent
6037b8e544
commit
6bb139a9f4
3 changed files with 89690 additions and 0 deletions
89607
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20221001171639_3286.Designer.cs
generated
Normal file
89607
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20221001171639_3286.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,55 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _3286 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_lists",
|
||||
columns: new[] { "id", "chat_url", "description", "donate_url", "email_address", "forum_url", "home_url", "is_approved", "issues_url", "license_id", "name", "onion_url", "policy_url", "submission_url" },
|
||||
values: new object[] { 2613L, null, "Malicious IP blocklists derived via lexical analysis of cloud virtual machine hostnames listed in the Inversion DNSBL Blocklists, updated every hour.", null, null, null, "https://github.com/elliotwutingfeng/Inversion-CloudIPs", true, "https://github.com/elliotwutingfeng/Inversion-CloudIPs/issues", 10L, "Inversion CloudIPs", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[] { 2613L, 174L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 2613L, 1L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "url" },
|
||||
values: new object[] { 2613L, 2880L, (short)1, "https://raw.githubusercontent.com/elliotwutingfeng/Inversion-CloudIPs/main/ips.txt" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2613L, 174L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2613L, 1L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2613L, 2880L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2613L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -22223,6 +22223,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/Leaf16591/AdAway-Default-Blocklist-AdGuard-Version/issues",
|
||||
LicenseId = 5L,
|
||||
Name = "AdAway Default Blocklist (AdGuard Version)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2613L,
|
||||
Description = "Malicious IP blocklists derived via lexical analysis of cloud virtual machine hostnames listed in the Inversion DNSBL Blocklists, updated every hour.",
|
||||
HomeUrl = "https://github.com/elliotwutingfeng/Inversion-CloudIPs",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/elliotwutingfeng/Inversion-CloudIPs/issues",
|
||||
LicenseId = 10L,
|
||||
Name = "Inversion CloudIPs"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -34570,6 +34580,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2612L,
|
||||
MaintainerId = 184L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2613L,
|
||||
MaintainerId = 174L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -45636,6 +45651,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2612L,
|
||||
SyntaxId = 6L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2613L,
|
||||
SyntaxId = 1L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -89348,6 +89368,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/Leaf16591/AdAway-Default-Blocklist-AdGuard-Version/main/Host"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2613L,
|
||||
Id = 2880L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/elliotwutingfeng/Inversion-CloudIPs/main/ips.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue