mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2897
This commit is contained in:
parent
801b29ea2c
commit
a989b6569a
3 changed files with 88273 additions and 1 deletions
88142
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220415154139_2897.Designer.cs
generated
Normal file
88142
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220415154139_2897.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,89 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2897 : 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[] { 2578L, null, "Machine-readable .txt allowlist of Syncthing Relay Server IP Addresses, updated every hour.", null, null, null, "https://github.com/elliotwutingfeng/SyncthingRelayServerIPs", true, "https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/issues", 10L, "Syncthing Relay Server IPs", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "maintainers",
|
||||
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
|
||||
values: new object[] { 174L, "wutingfeng@outlook.com", true, "Wu Tingfeng", null, "https://github.com/elliotwutingfeng" });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "tags",
|
||||
keyColumn: "id",
|
||||
keyValue: 10L,
|
||||
column: "name",
|
||||
value: "allowlist");
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[] { 2578L, 174L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 2578L, 9L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 2578L, 10L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "url" },
|
||||
values: new object[] { 2578L, 2843L, (short)1, "https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/blob/main/ips.txt?raw=1" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2578L, 174L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2578L, 9L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2578L, 10L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2578L, 2843L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2578L);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "maintainers",
|
||||
keyColumn: "id",
|
||||
keyValue: 174L);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "tags",
|
||||
keyColumn: "id",
|
||||
keyValue: 10L,
|
||||
column: "name",
|
||||
value: "whitelist");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -21906,6 +21906,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://gitlab.com/curben/vn-badsite-filter/issues",
|
||||
LicenseId = 28L,
|
||||
Name = "vn-badsite-filter (IE)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2578L,
|
||||
Description = "Machine-readable .txt allowlist of Syncthing Relay Server IP Addresses, updated every hour.",
|
||||
HomeUrl = "https://github.com/elliotwutingfeng/SyncthingRelayServerIPs",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/issues",
|
||||
LicenseId = 10L,
|
||||
Name = "Syncthing Relay Server IPs"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -33953,6 +33963,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2577L,
|
||||
MaintainerId = 158L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2578L,
|
||||
MaintainerId = 174L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -44844,6 +44859,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2577L,
|
||||
SyntaxId = 10L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2578L,
|
||||
SyntaxId = 9L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -60640,6 +60660,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2567L,
|
||||
TagId = 5L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2578L,
|
||||
TagId = 10L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -63781,6 +63806,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IsApproved = true,
|
||||
Name = "green1052",
|
||||
Url = "https://github.com/green1052"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 174L,
|
||||
EmailAddress = "wutingfeng@outlook.com",
|
||||
IsApproved = true,
|
||||
Name = "Wu Tingfeng",
|
||||
Url = "https://github.com/elliotwutingfeng"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -66072,7 +66105,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 10L,
|
||||
Description = "Unblocks categorical resources",
|
||||
IsApproved = true,
|
||||
Name = "whitelist"
|
||||
Name = "allowlist"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -87870,6 +87903,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://curben.gitlab.io/malware-filter/vn-badsite-filter.tpl"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2578L,
|
||||
Id = 2843L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://github.com/elliotwutingfeng/SyncthingRelayServerIPs/blob/main/ips.txt?raw=1"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue