mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3440
This commit is contained in:
parent
80f407d2ab
commit
5f6b3063e8
3 changed files with 90211 additions and 0 deletions
90089
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230224001747_3440.Designer.cs
generated
Normal file
90089
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230224001747_3440.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,79 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _3440 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 2639L, 3L });
|
||||
|
||||
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[] { 2640L, null, "Steven Universe is a cartoon about a Mary Sue boy tagging along with racist xenophobic aliens to fight other racist xenophobic aliens for no good reason, all of whom are also bad parental figures. Here's a list to get a breather break from it.", "https://sproutsluckycorner.wordpress.com/2017/11/14/my-work-and-contact-resume/#donations", "imreeil42@gmail.com", null, "https://github.com/DandelionSprout/adfilt", true, "https://github.com/DandelionSprout/adfilt/issues", 35L, "Anti-'Steven Universe' List", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[] { 2640L, 22L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 2640L, 30L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2640L, 2908L, (short)1, "https://raw.githubusercontent.com/DandelionSprout/adfilt/master/AntiStevenUniverseList.txt" },
|
||||
{ 2640L, 2909L, (short)2, "https://gitlab.com/DandelionSprout/adfilt/-/raw/master/AntiStevenUniverseList.txt" }
|
||||
});
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2640L, 22L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2639L, 3L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2640L, 30L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2640L, 2908L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2640L, 2909L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2640L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -22366,6 +22366,18 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IsApproved = true,
|
||||
LicenseId = 4L,
|
||||
Name = "Fanboy Notifications Blocking List (uBlock Origin)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2640L,
|
||||
Description = "Steven Universe is a cartoon about a Mary Sue boy tagging along with racist xenophobic aliens to fight other racist xenophobic aliens for no good reason, all of whom are also bad parental figures. Here's a list to get a breather break from it.",
|
||||
DonateUrl = "https://sproutsluckycorner.wordpress.com/2017/11/14/my-work-and-contact-resume/#donations",
|
||||
EmailAddress = "imreeil42@gmail.com",
|
||||
HomeUrl = "https://github.com/DandelionSprout/adfilt",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/DandelionSprout/adfilt/issues",
|
||||
LicenseId = 35L,
|
||||
Name = "Anti-'Steven Universe' List"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -34753,6 +34765,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2639L,
|
||||
MaintainerId = 22L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2640L,
|
||||
MaintainerId = 22L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -45916,6 +45933,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
SyntaxId = 38L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2639L,
|
||||
SyntaxId = 3L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2639L,
|
||||
SyntaxId = 4L
|
||||
|
|
@ -62075,6 +62097,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2639L,
|
||||
TagId = 32L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2640L,
|
||||
TagId = 30L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -89814,6 +89841,22 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/DandelionSprout/adfilt/master/Other domains versions/FanboyNotifications-LoadableInUBO.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2640L,
|
||||
Id = 2908L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/DandelionSprout/adfilt/master/AntiStevenUniverseList.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2640L,
|
||||
Id = 2909L,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://gitlab.com/DandelionSprout/adfilt/-/raw/master/AntiStevenUniverseList.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue