mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2902
This commit is contained in:
parent
f8988c5eba
commit
74085b049d
3 changed files with 88456 additions and 0 deletions
88356
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220415172922_2902.Designer.cs
generated
Normal file
88356
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220415172922_2902.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,65 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2902 : 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[] { 2584L, null, "My home made anti Qanon list.", null, null, null, "https://github.com/ThePirateNerd/Anti-Q", true, "https://github.com/ThePirateNerd/Anti-Q/issues", 5L, "Anti-Q", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "maintainers",
|
||||
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
|
||||
values: new object[] { 177L, null, true, "ThePirateNerd", null, "https://github.com/ThePirateNerd" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[] { 2584L, 177L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 2584L, 2L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "url" },
|
||||
values: new object[] { 2584L, 2849L, (short)1, "https://raw.githubusercontent.com/ThePirateNerd/Anti-Q/main/Anti-Q.txt" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2584L, 177L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2584L, 2L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2584L, 2849L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2584L);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "maintainers",
|
||||
keyColumn: "id",
|
||||
keyValue: 177L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -21966,6 +21966,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/sioxe823/Project-RnJlRUhL/issues",
|
||||
LicenseId = 5L,
|
||||
Name = "Project RnJlRUhL"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2584L,
|
||||
Description = "My home made anti Qanon list.",
|
||||
HomeUrl = "https://github.com/ThePirateNerd/Anti-Q",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/ThePirateNerd/Anti-Q/issues",
|
||||
LicenseId = 5L,
|
||||
Name = "Anti-Q"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -34048,6 +34058,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2583L,
|
||||
MaintainerId = 176L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2584L,
|
||||
MaintainerId = 177L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -44969,6 +44984,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2583L,
|
||||
SyntaxId = 6L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2584L,
|
||||
SyntaxId = 2L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -63953,6 +63973,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IsApproved = true,
|
||||
Name = "sioxe823",
|
||||
Url = "https://github.com/sioxe823"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 177L,
|
||||
IsApproved = true,
|
||||
Name = "ThePirateNerd",
|
||||
Url = "https://github.com/ThePirateNerd"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -88090,6 +88117,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/sioxe823/Project-RnJlRUhL/main/chinese_gov_forced_install.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2584L,
|
||||
Id = 2849L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/ThePirateNerd/Anti-Q/main/Anti-Q.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue