mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3546
This commit is contained in:
parent
1fe9cab3af
commit
b8af2da4e9
3 changed files with 90645 additions and 0 deletions
90527
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230420074323_3546.Designer.cs
generated
Normal file
90527
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230420074323_3546.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,78 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _3546 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
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[] { 2655L, null, "List of German-speaking web-sites with fake-news, propaganda, hate-speech, etc.", null, null, null, "https://codeberg.org/badandugly/badandugly", true, "https://codeberg.org/badandugly/badandugly/issues", 4L, "The Bad & The Ugly Blocklist (German)", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "maintainers",
|
||||
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
|
||||
values: new object[] { 186L, null, true, "BadAndUgly", null, "https://codeberg.org/badandugly" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[] { 2655L, 168L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 2655L, 6L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 2655L, 25L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "segment_number", "url" },
|
||||
values: new object[] { 2655L, 2933L, (short)1, (short)1, "https://codeberg.org/badandugly/badandugly/raw/branch/main/blocklist" });
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2655L, 168L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2655L, 6L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2655L, 25L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2655L, 2933L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "maintainers",
|
||||
keyColumn: "id",
|
||||
keyValue: 186L);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2655L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -22482,6 +22482,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/ammnt/DeadEnd/issues",
|
||||
LicenseId = 4L,
|
||||
Name = "Dead End"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2655L,
|
||||
Description = "List of German-speaking web-sites with fake-news, propaganda, hate-speech, etc.",
|
||||
HomeUrl = "https://codeberg.org/badandugly/badandugly",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://codeberg.org/badandugly/badandugly/issues",
|
||||
LicenseId = 4L,
|
||||
Name = "The Bad & The Ugly Blocklist (German)"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -35029,6 +35039,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2654L,
|
||||
MaintainerId = 166L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2655L,
|
||||
MaintainerId = 168L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -46230,6 +46245,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2654L,
|
||||
SyntaxId = 6L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2655L,
|
||||
SyntaxId = 6L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -62476,6 +62496,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2654L,
|
||||
TagId = 3L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2655L,
|
||||
TagId = 25L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -65695,6 +65720,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IsApproved = true,
|
||||
Name = "The Doggy Brad",
|
||||
Url = "https://github.com/thedoggybrad"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 186L,
|
||||
IsApproved = true,
|
||||
Name = "BadAndUgly",
|
||||
Url = "https://codeberg.org/badandugly"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -90255,6 +90287,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)1,
|
||||
Url = "https://raw.githubusercontent.com/ammnt/DeadEnd/main/filter.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2655L,
|
||||
Id = 2933L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)1,
|
||||
Url = "https://codeberg.org/badandugly/badandugly/raw/branch/main/blocklist"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue