feat(data): migrate PR #3456

This commit is contained in:
Azure Pipelines EF Migration Bot 2023-03-08 21:03:54 +00:00 committed by Collin Barrett
parent 4daac26c7b
commit 8ca3fdd08c
3 changed files with 90899 additions and 1 deletions

View file

@ -0,0 +1,329 @@
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 _3456 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "filter_list_syntaxes",
columns: new[] { "filter_list_id", "syntax_id" },
values: new object[] { 2640L, 3L });
migrationBuilder.InsertData(
table: "filter_list_tags",
columns: new[] { "filter_list_id", "tag_id" },
values: new object[] { 2317L, 6L });
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[,]
{
{ 2641L, null, "This is a filter subscription for AdBlock Plus, uBlock Origin, AdGuard and other similar products, derived from my main hosts file, with some mostly cosmetic filters to remove overlooked web annoyances. It is much smaller than my hosts file while blocking the same amount of content and more (thanks to wildcard matching and flexibile ABP syntax). It is quite effective, and an especially good choice for those who do not have access to the hosts file or configurable DNS-based blocking options. I recommend using this list with AdGuard's Base + Tracking + Annoyances filters, or EasyList + EasyPrivacy + FanBoy's Annoyance filters, due to their additional element hiding and exception rule-sets.", null, null, null, "https://github.com/bongochong/CombinedPrivacyBlockLists", true, null, 44L, "CPBL AdBlock", null, null, null },
{ 2642L, null, "This is a dnsmasq blacklist that is derived from my main hosts file. Like any decent dnsmasq blacklist, it takes advantage of tld-compression / fqdn-optimization, resulting in a significantly reduced size.", null, null, null, "https://github.com/bongochong/CombinedPrivacyBlockLists", true, null, 44L, "CPBL DNSMasq", null, null, null },
{ 2643L, null, "This is a wildcard domain blacklist (*.some.domain) derived from my main hosts file. It benefits from tld-compression / fqdn-optimization, resulting in a significantly reduced size.", null, null, null, "https://github.com/bongochong/CombinedPrivacyBlockLists", true, null, 44L, "CPBL Wildcards", null, null, null },
{ 2644L, null, "This is a plain domain blacklist derived from my main hosts file. That's it.", null, null, null, "https://github.com/bongochong/CombinedPrivacyBlockLists", true, null, 44L, "CPBL Domains", null, null, null },
{ 2645L, null, "This is an fqdn-optimized / tld-compressed version of the plain domain blacklist derived from my main hosts file. It is similar to my wildcard domains blacklist, but without comments ('#') or syntax ('*.') additions.", null, null, null, "https://github.com/bongochong/CombinedPrivacyBlockLists", true, null, 44L, "CPBL Compressed Domains", null, null, null }
});
migrationBuilder.UpdateData(
table: "maintainers",
keyColumn: "id",
keyValue: 126L,
column: "name",
value: "Chon Bongo");
migrationBuilder.InsertData(
table: "filter_list_maintainers",
columns: new[] { "filter_list_id", "maintainer_id" },
values: new object[,]
{
{ 2641L, 126L },
{ 2642L, 126L },
{ 2643L, 126L },
{ 2644L, 126L },
{ 2645L, 126L }
});
migrationBuilder.InsertData(
table: "filter_list_syntaxes",
columns: new[] { "filter_list_id", "syntax_id" },
values: new object[,]
{
{ 2641L, 3L },
{ 2642L, 20L },
{ 2643L, 16L },
{ 2644L, 2L },
{ 2645L, 2L }
});
migrationBuilder.InsertData(
table: "filter_list_tags",
columns: new[] { "filter_list_id", "tag_id" },
values: new object[,]
{
{ 2641L, 2L },
{ 2641L, 3L },
{ 2641L, 6L },
{ 2641L, 7L },
{ 2642L, 2L },
{ 2642L, 3L },
{ 2642L, 6L },
{ 2642L, 7L },
{ 2643L, 2L },
{ 2643L, 3L },
{ 2643L, 6L },
{ 2643L, 7L },
{ 2644L, 2L },
{ 2644L, 3L },
{ 2644L, 6L },
{ 2644L, 7L },
{ 2645L, 2L },
{ 2645L, 3L },
{ 2645L, 6L },
{ 2645L, 7L }
});
migrationBuilder.InsertData(
table: "filter_list_view_urls",
columns: new[] { "filter_list_id", "id", "primariness", "url" },
values: new object[,]
{
{ 2641L, 2910L, (short)1, "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/cpbl-abp-list.txt" },
{ 2642L, 2911L, (short)1, "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/NoFormatting/cpbl-dnsmasq.txt" },
{ 2643L, 2912L, (short)1, "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/NoFormatting/cpbl-wildcard-blacklist.txt" },
{ 2644L, 2913L, (short)1, "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/NoFormatting/BlacklistedDomains.txt" },
{ 2645L, 2914L, (short)1, "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/NoFormatting/cpbl-ctld.txt" }
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2641L, 126L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2642L, 126L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2643L, 126L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2644L, 126L });
migrationBuilder.DeleteData(
table: "filter_list_maintainers",
keyColumns: new[] { "filter_list_id", "maintainer_id" },
keyValues: new object[] { 2645L, 126L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2640L, 3L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2641L, 3L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2642L, 20L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2643L, 16L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2644L, 2L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2645L, 2L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2317L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2641L, 2L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2641L, 3L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2641L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2641L, 7L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2642L, 2L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2642L, 3L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2642L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2642L, 7L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2643L, 2L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2643L, 3L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2643L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2643L, 7L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2644L, 2L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2644L, 3L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2644L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2644L, 7L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2645L, 2L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2645L, 3L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2645L, 6L });
migrationBuilder.DeleteData(
table: "filter_list_tags",
keyColumns: new[] { "filter_list_id", "tag_id" },
keyValues: new object[] { 2645L, 7L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2641L, 2910L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2642L, 2911L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2643L, 2912L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2644L, 2913L });
migrationBuilder.DeleteData(
table: "filter_list_view_urls",
keyColumns: new[] { "filter_list_id", "id" },
keyValues: new object[] { 2645L, 2914L });
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2641L);
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2642L);
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2643L);
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2644L);
migrationBuilder.DeleteData(
table: "filter_lists",
keyColumn: "id",
keyValue: 2645L);
migrationBuilder.UpdateData(
table: "maintainers",
keyColumn: "id",
keyValue: 126L,
column: "name",
value: "Chongo Bong");
}
}
}

View file

@ -22378,6 +22378,51 @@ protected override void BuildModel(ModelBuilder modelBuilder)
IssuesUrl = "https://github.com/DandelionSprout/adfilt/issues",
LicenseId = 35L,
Name = "Anti-'Steven Universe' List"
},
new
{
Id = 2641L,
Description = "This is a filter subscription for AdBlock Plus, uBlock Origin, AdGuard and other similar products, derived from my main hosts file, with some mostly cosmetic filters to remove overlooked web annoyances. It is much smaller than my hosts file while blocking the same amount of content and more (thanks to wildcard matching and flexibile ABP syntax). It is quite effective, and an especially good choice for those who do not have access to the hosts file or configurable DNS-based blocking options. I recommend using this list with AdGuard's Base + Tracking + Annoyances filters, or EasyList + EasyPrivacy + FanBoy's Annoyance filters, due to their additional element hiding and exception rule-sets.",
HomeUrl = "https://github.com/bongochong/CombinedPrivacyBlockLists",
IsApproved = true,
LicenseId = 44L,
Name = "CPBL AdBlock"
},
new
{
Id = 2642L,
Description = "This is a dnsmasq blacklist that is derived from my main hosts file. Like any decent dnsmasq blacklist, it takes advantage of tld-compression / fqdn-optimization, resulting in a significantly reduced size.",
HomeUrl = "https://github.com/bongochong/CombinedPrivacyBlockLists",
IsApproved = true,
LicenseId = 44L,
Name = "CPBL DNSMasq"
},
new
{
Id = 2643L,
Description = "This is a wildcard domain blacklist (*.some.domain) derived from my main hosts file. It benefits from tld-compression / fqdn-optimization, resulting in a significantly reduced size.",
HomeUrl = "https://github.com/bongochong/CombinedPrivacyBlockLists",
IsApproved = true,
LicenseId = 44L,
Name = "CPBL Wildcards"
},
new
{
Id = 2644L,
Description = "This is a plain domain blacklist derived from my main hosts file. That's it.",
HomeUrl = "https://github.com/bongochong/CombinedPrivacyBlockLists",
IsApproved = true,
LicenseId = 44L,
Name = "CPBL Domains"
},
new
{
Id = 2645L,
Description = "This is an fqdn-optimized / tld-compressed version of the plain domain blacklist derived from my main hosts file. It is similar to my wildcard domains blacklist, but without comments ('#') or syntax ('*.') additions.",
HomeUrl = "https://github.com/bongochong/CombinedPrivacyBlockLists",
IsApproved = true,
LicenseId = 44L,
Name = "CPBL Compressed Domains"
});
});
@ -34770,6 +34815,31 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2640L,
MaintainerId = 22L
},
new
{
FilterListId = 2641L,
MaintainerId = 126L
},
new
{
FilterListId = 2642L,
MaintainerId = 126L
},
new
{
FilterListId = 2643L,
MaintainerId = 126L
},
new
{
FilterListId = 2644L,
MaintainerId = 126L
},
new
{
FilterListId = 2645L,
MaintainerId = 126L
});
});
@ -45931,6 +46001,36 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2639L,
SyntaxId = 4L
},
new
{
FilterListId = 2640L,
SyntaxId = 3L
},
new
{
FilterListId = 2641L,
SyntaxId = 3L
},
new
{
FilterListId = 2642L,
SyntaxId = 20L
},
new
{
FilterListId = 2643L,
SyntaxId = 16L
},
new
{
FilterListId = 2644L,
SyntaxId = 2L
},
new
{
FilterListId = 2645L,
SyntaxId = 2L
});
});
@ -59949,6 +60049,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
TagId = 3L
},
new
{
FilterListId = 2317L,
TagId = 6L
},
new
{
FilterListId = 2318L,
TagId = 7L
@ -62092,6 +62197,106 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2640L,
TagId = 30L
},
new
{
FilterListId = 2641L,
TagId = 2L
},
new
{
FilterListId = 2641L,
TagId = 3L
},
new
{
FilterListId = 2641L,
TagId = 6L
},
new
{
FilterListId = 2641L,
TagId = 7L
},
new
{
FilterListId = 2642L,
TagId = 2L
},
new
{
FilterListId = 2642L,
TagId = 3L
},
new
{
FilterListId = 2642L,
TagId = 6L
},
new
{
FilterListId = 2642L,
TagId = 7L
},
new
{
FilterListId = 2643L,
TagId = 2L
},
new
{
FilterListId = 2643L,
TagId = 3L
},
new
{
FilterListId = 2643L,
TagId = 6L
},
new
{
FilterListId = 2643L,
TagId = 7L
},
new
{
FilterListId = 2644L,
TagId = 2L
},
new
{
FilterListId = 2644L,
TagId = 3L
},
new
{
FilterListId = 2644L,
TagId = 6L
},
new
{
FilterListId = 2644L,
TagId = 7L
},
new
{
FilterListId = 2645L,
TagId = 2L
},
new
{
FilterListId = 2645L,
TagId = 3L
},
new
{
FilterListId = 2645L,
TagId = 6L
},
new
{
FilterListId = 2645L,
TagId = 7L
});
});
@ -64888,7 +65093,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 126L,
EmailAddress = "radicalbotanical@aol.com",
IsApproved = true,
Name = "Chongo Bong",
Name = "Chon Bongo",
Url = "https://github.com/bongochong"
},
new
@ -89847,6 +90052,46 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Primariness = (short)2,
SegmentNumber = (short)0,
Url = "https://gitlab.com/DandelionSprout/adfilt/-/raw/master/AntiStevenUniverseList.txt"
},
new
{
FilterListId = 2641L,
Id = 2910L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/cpbl-abp-list.txt"
},
new
{
FilterListId = 2642L,
Id = 2911L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/NoFormatting/cpbl-dnsmasq.txt"
},
new
{
FilterListId = 2643L,
Id = 2912L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/NoFormatting/cpbl-wildcard-blacklist.txt"
},
new
{
FilterListId = 2644L,
Id = 2913L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/NoFormatting/BlacklistedDomains.txt"
},
new
{
FilterListId = 2645L,
Id = 2914L,
Primariness = (short)1,
SegmentNumber = (short)0,
Url = "https://raw.githubusercontent.com/bongochong/CombinedPrivacyBlockLists/master/NoFormatting/cpbl-ctld.txt"
});
});