mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3287
This commit is contained in:
parent
86946ea68d
commit
b4dfab3cdd
3 changed files with 90154 additions and 0 deletions
89782
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20221001175352_3287.Designer.cs
generated
Normal file
89782
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20221001175352_3287.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,197 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _3287 : 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[,]
|
||||
{
|
||||
{ 2614L, null, "A filter list for Adblock Plus for remove all newsletters banners", null, null, null, "https://github.com/thedoggybrad/no-newsletter", true, "https://github.com/thedoggybrad/no-newsletter/issues", 17L, "no-newsletter", null, null, null },
|
||||
{ 2615L, null, "No mercy for 3rd Party Frames.", null, null, null, "https://github.com/thedoggybrad/Frame-Blocker-Filter", true, "https://github.com/thedoggybrad/Frame-Blocker-Filter/issues", 17L, "Frame-Blocker-Filter (3rd Party only)", null, null, null },
|
||||
{ 2616L, null, "No mercy for all frames.", null, null, null, "https://github.com/thedoggybrad/Frame-Blocker-Filter", true, "https://github.com/thedoggybrad/Frame-Blocker-Filter/issues", 17L, "Frame-Blocker-Filter (All Frames)", null, null, null },
|
||||
{ 2617L, null, "No mercy for 3rd party frames with Google and YouTube exceptions.", null, null, null, "https://github.com/thedoggybrad/Frame-Blocker-Filter", true, "https://github.com/thedoggybrad/Frame-Blocker-Filter/issues", 17L, "3rd Party only Frame Blocking with Google and YouTube exceptions", null, null, null },
|
||||
{ 2618L, null, "No mercy for 3rd Party Frames except for common Social Media sites.", null, null, null, "https://github.com/thedoggybrad/Frame-Blocker-Filter", true, "https://github.com/thedoggybrad/Frame-Blocker-Filter/issues", 17L, "3rd Party only Frame Blocking with Social Media exceptions", null, null, null },
|
||||
{ 2619L, null, "A bigger variant of Frame-Blocker-Filter. This variant-filter is designed to block non-essential Frames.", null, null, null, "https://github.com/thedoggybrad/Non-Essential-Frames-Blocker", true, "https://github.com/thedoggybrad/Non-Essential-Frames-Blocker/issues", 17L, "Non-Essential-Frames-Blocker", null, null, null }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "maintainers",
|
||||
columns: new[] { "id", "email_address", "is_approved", "name", "twitter_handle", "url" },
|
||||
values: new object[] { 185L, null, true, "The Doggy Brad", null, "https://github.com/thedoggybrad" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2614L, 185L },
|
||||
{ 2615L, 185L },
|
||||
{ 2616L, 185L },
|
||||
{ 2617L, 185L },
|
||||
{ 2618L, 185L },
|
||||
{ 2619L, 185L }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2614L, 3L },
|
||||
{ 2615L, 3L },
|
||||
{ 2616L, 3L },
|
||||
{ 2617L, 3L },
|
||||
{ 2618L, 3L },
|
||||
{ 2619L, 3L }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_view_urls",
|
||||
columns: new[] { "filter_list_id", "id", "primariness", "url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2614L, 2881L, (short)1, "https://raw.githubusercontent.com/thedoggybrad/no-newsletter/master/filter.txt" },
|
||||
{ 2615L, 2882L, (short)1, "https://raw.githubusercontent.com/thedoggybrad/Frame-Blocker-Filter/main/3rdParty.txt" },
|
||||
{ 2616L, 2883L, (short)1, "https://raw.githubusercontent.com/thedoggybrad/Frame-Blocker-Filter/main/All.txt" },
|
||||
{ 2617L, 2884L, (short)1, "https://raw.githubusercontent.com/thedoggybrad/Frame-Blocker-Filter/main/googleyt-exception.txt" },
|
||||
{ 2618L, 2885L, (short)1, "https://raw.githubusercontent.com/thedoggybrad/Frame-Blocker-Filter/main/socialmedia-exception.txt" },
|
||||
{ 2619L, 2886L, (short)1, "https://raw.githubusercontent.com/thedoggybrad/Non-Essential-Frames-Blocker/main/filter.txt" }
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2614L, 185L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2615L, 185L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2616L, 185L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2617L, 185L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2618L, 185L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 2619L, 185L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2614L, 3L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2615L, 3L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2616L, 3L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2617L, 3L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2618L, 3L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2619L, 3L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2614L, 2881L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2615L, 2882L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2616L, 2883L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2617L, 2884L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2618L, 2885L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2619L, 2886L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2614L);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2615L);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2616L);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2617L);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2618L);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2619L);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "maintainers",
|
||||
keyColumn: "id",
|
||||
keyValue: 185L);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -22233,6 +22233,66 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/elliotwutingfeng/Inversion-CloudIPs/issues",
|
||||
LicenseId = 10L,
|
||||
Name = "Inversion CloudIPs"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2614L,
|
||||
Description = "A filter list for Adblock Plus for remove all newsletters banners",
|
||||
HomeUrl = "https://github.com/thedoggybrad/no-newsletter",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/thedoggybrad/no-newsletter/issues",
|
||||
LicenseId = 17L,
|
||||
Name = "no-newsletter"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2615L,
|
||||
Description = "No mercy for 3rd Party Frames.",
|
||||
HomeUrl = "https://github.com/thedoggybrad/Frame-Blocker-Filter",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/thedoggybrad/Frame-Blocker-Filter/issues",
|
||||
LicenseId = 17L,
|
||||
Name = "Frame-Blocker-Filter (3rd Party only)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2616L,
|
||||
Description = "No mercy for all frames.",
|
||||
HomeUrl = "https://github.com/thedoggybrad/Frame-Blocker-Filter",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/thedoggybrad/Frame-Blocker-Filter/issues",
|
||||
LicenseId = 17L,
|
||||
Name = "Frame-Blocker-Filter (All Frames)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2617L,
|
||||
Description = "No mercy for 3rd party frames with Google and YouTube exceptions.",
|
||||
HomeUrl = "https://github.com/thedoggybrad/Frame-Blocker-Filter",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/thedoggybrad/Frame-Blocker-Filter/issues",
|
||||
LicenseId = 17L,
|
||||
Name = "3rd Party only Frame Blocking with Google and YouTube exceptions"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2618L,
|
||||
Description = "No mercy for 3rd Party Frames except for common Social Media sites.",
|
||||
HomeUrl = "https://github.com/thedoggybrad/Frame-Blocker-Filter",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/thedoggybrad/Frame-Blocker-Filter/issues",
|
||||
LicenseId = 17L,
|
||||
Name = "3rd Party only Frame Blocking with Social Media exceptions"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2619L,
|
||||
Description = "A bigger variant of Frame-Blocker-Filter. This variant-filter is designed to block non-essential Frames.",
|
||||
HomeUrl = "https://github.com/thedoggybrad/Non-Essential-Frames-Blocker",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/thedoggybrad/Non-Essential-Frames-Blocker/issues",
|
||||
LicenseId = 17L,
|
||||
Name = "Non-Essential-Frames-Blocker"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -34585,6 +34645,36 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2613L,
|
||||
MaintainerId = 174L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2614L,
|
||||
MaintainerId = 185L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2615L,
|
||||
MaintainerId = 185L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2616L,
|
||||
MaintainerId = 185L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2617L,
|
||||
MaintainerId = 185L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2618L,
|
||||
MaintainerId = 185L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2619L,
|
||||
MaintainerId = 185L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -45656,6 +45746,36 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2613L,
|
||||
SyntaxId = 1L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2614L,
|
||||
SyntaxId = 3L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2615L,
|
||||
SyntaxId = 3L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2616L,
|
||||
SyntaxId = 3L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2617L,
|
||||
SyntaxId = 3L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2618L,
|
||||
SyntaxId = 3L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2619L,
|
||||
SyntaxId = 3L
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -64976,6 +65096,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IsApproved = true,
|
||||
Name = "Matteo",
|
||||
Url = "https://github.com/Leaf16591"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 185L,
|
||||
IsApproved = true,
|
||||
Name = "The Doggy Brad",
|
||||
Url = "https://github.com/thedoggybrad"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -89376,6 +89503,54 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/elliotwutingfeng/Inversion-CloudIPs/main/ips.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2614L,
|
||||
Id = 2881L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/thedoggybrad/no-newsletter/master/filter.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2615L,
|
||||
Id = 2882L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/thedoggybrad/Frame-Blocker-Filter/main/3rdParty.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2616L,
|
||||
Id = 2883L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/thedoggybrad/Frame-Blocker-Filter/main/All.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2617L,
|
||||
Id = 2884L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/thedoggybrad/Frame-Blocker-Filter/main/googleyt-exception.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2618L,
|
||||
Id = 2885L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/thedoggybrad/Frame-Blocker-Filter/main/socialmedia-exception.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2619L,
|
||||
Id = 2886L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/thedoggybrad/Non-Essential-Frames-Blocker/main/filter.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue