mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2666
This commit is contained in:
parent
5cda2a0a61
commit
2ca3745d8f
3 changed files with 84722 additions and 0 deletions
84352
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20211114143050_2666.Designer.cs
generated
Normal file
84352
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20211114143050_2666.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,208 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2666 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterLists",
|
||||
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2564, null, "Filters that accept cookies/GDPR/privacy policy on Polish websites.", null, "contact-project+filtersheroes-pccassets-30920945-issue-@incoming.gitlab.com", "https://www.reddit.com/r/PolishCookieConsent", "https://github.com/FiltersHeroes/PCCassets", "https://github.com/FiltersHeroes/PCCassets/issues", 33, "Polish Cookie Database", null, null, null },
|
||||
{ 2565, null, "Filters that accept cookies/GDPR/privacy policy on European websites (based on I don't care about cookies).", null, "contact-project+filtersheroes-pccassets-30920945-issue-@incoming.gitlab.com", "https://www.reddit.com/r/PolishCookieConsent", "https://github.com/FiltersHeroes/PCCassets", "https://github.com/FiltersHeroes/PCCassets/issues", 4, "European Cookie Database", null, null, null }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Software",
|
||||
columns: new[] { "Id", "Description", "DownloadUrl", "HomeUrl", "Name", "SupportsAbpUrlScheme" },
|
||||
values: new object[] { 47, "Automatically accepts cookie policy/GDPR on websites.", "https://github.com/FiltersHeroes/PolishCookieConsent/#how-to-install-it", "https://github.com/FiltersHeroes/PolishCookieConsent", "Polish Cookie Consent", false });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Syntaxes",
|
||||
columns: new[] { "Id", "Description", "Name", "Url" },
|
||||
values: new object[] { 56, null, "Polish Cookie Consent", "https://polishannoyancefilters.netlify.app/en/PolishCookieConsent/syntax/" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Dependents",
|
||||
columns: new[] { "DependencyFilterListId", "DependentFilterListId" },
|
||||
values: new object[] { 224, 2564 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListLanguages",
|
||||
columns: new[] { "FilterListId", "Iso6391" },
|
||||
values: new object[] { 2564, "pl" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListMaintainers",
|
||||
columns: new[] { "FilterListId", "MaintainerId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2564, 34 },
|
||||
{ 2565, 34 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntaxes",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2564, 56 },
|
||||
{ 2565, 56 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTags",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2564, 8 },
|
||||
{ 2565, 8 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrls",
|
||||
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2788, 2564, (short)1, "https://raw.githubusercontent.com/FiltersHeroes/PCCassets/main/plCDB.txt" },
|
||||
{ 2789, 2564, (short)2, "https://cdn.jsdelivr.net/gh/FiltersHeroes/PCCassets@main/plCDB.txt" },
|
||||
{ 2790, 2564, (short)3, "https://combinatronics.io/FiltersHeroes/PCCassets/main/plCDB.txt" },
|
||||
{ 2791, 2564, (short)4, "https://cdn.statically.io/gh/FiltersHeroes/PCCassets/main/plCDB.txt" },
|
||||
{ 2792, 2564, (short)5, "https://filtersheroes.gitlab.io/AssetsMirror/plCDB.txt" },
|
||||
{ 2793, 2565, (short)1, "https://raw.githubusercontent.com/FiltersHeroes/PCCassets/main/euCDB.txt" },
|
||||
{ 2794, 2565, (short)2, "https://cdn.jsdelivr.net/gh/FiltersHeroes/PCCassets@main/euCDB.txt" },
|
||||
{ 2795, 2565, (short)3, "https://combinatronics.io/FiltersHeroes/PCCassets/main/euCDB.txt" },
|
||||
{ 2796, 2565, (short)4, "https://cdn.statically.io/gh/FiltersHeroes/PCCassets/main/euCDB.txt" },
|
||||
{ 2797, 2565, (short)5, "https://filtersheroes.gitlab.io/AssetsMirror/euCDB.txt" }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "SoftwareSyntaxes",
|
||||
columns: new[] { "SoftwareId", "SyntaxId" },
|
||||
values: new object[] { 47, 56 });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Dependents",
|
||||
keyColumns: new[] { "DependencyFilterListId", "DependentFilterListId" },
|
||||
keyValues: new object[] { 224, 2564 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListLanguages",
|
||||
keyColumns: new[] { "FilterListId", "Iso6391" },
|
||||
keyValues: new object[] { 2564, "pl" });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2564, 34 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2565, 34 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2564, 56 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2565, 56 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2564, 8 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2565, 8 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2788);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2789);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2790);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2791);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2792);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2793);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2794);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2795);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2796);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2797);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "SoftwareSyntaxes",
|
||||
keyColumns: new[] { "SoftwareId", "SyntaxId" },
|
||||
keyValues: new object[] { 47, 56 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2564);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2565);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Software",
|
||||
keyColumn: "Id",
|
||||
keyValue: 47);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Syntaxes",
|
||||
keyColumn: "Id",
|
||||
keyValue: 56);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -58,6 +58,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
DependentFilterListId = 853
|
||||
},
|
||||
new
|
||||
{
|
||||
DependencyFilterListId = 224,
|
||||
DependentFilterListId = 2564
|
||||
},
|
||||
new
|
||||
{
|
||||
DependencyFilterListId = 347,
|
||||
DependentFilterListId = 1817
|
||||
|
|
@ -19417,6 +19422,28 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
HomeUrl = "https://github.com/furkun/AndroidSecurityHosts",
|
||||
LicenseId = 2,
|
||||
Name = "Android Security Hosts (Domains)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2564,
|
||||
Description = "Filters that accept cookies/GDPR/privacy policy on Polish websites.",
|
||||
EmailAddress = "contact-project+filtersheroes-pccassets-30920945-issue-@incoming.gitlab.com",
|
||||
ForumUrl = "https://www.reddit.com/r/PolishCookieConsent",
|
||||
HomeUrl = "https://github.com/FiltersHeroes/PCCassets",
|
||||
IssuesUrl = "https://github.com/FiltersHeroes/PCCassets/issues",
|
||||
LicenseId = 33,
|
||||
Name = "Polish Cookie Database"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2565,
|
||||
Description = "Filters that accept cookies/GDPR/privacy policy on European websites (based on I don't care about cookies).",
|
||||
EmailAddress = "contact-project+filtersheroes-pccassets-30920945-issue-@incoming.gitlab.com",
|
||||
ForumUrl = "https://www.reddit.com/r/PolishCookieConsent",
|
||||
HomeUrl = "https://github.com/FiltersHeroes/PCCassets",
|
||||
IssuesUrl = "https://github.com/FiltersHeroes/PCCassets/issues",
|
||||
LicenseId = 4,
|
||||
Name = "European Cookie Database"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -24109,6 +24136,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2561,
|
||||
Iso6391 = "tr"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2564,
|
||||
Iso6391 = "pl"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -31321,6 +31353,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2556,
|
||||
MaintainerId = 165
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2564,
|
||||
MaintainerId = 34
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2565,
|
||||
MaintainerId = 34
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -42153,6 +42195,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2563,
|
||||
SyntaxId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2564,
|
||||
SyntaxId = 56
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2565,
|
||||
SyntaxId = 56
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -57935,6 +57987,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2563,
|
||||
TagId = 15
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2564,
|
||||
TagId = 8
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2565,
|
||||
TagId = 8
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -79194,6 +79256,86 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://codeberg.org/rusty-snake/firefox-config/src/branch/main/assets/uBlockOrigin:queryprune.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2788,
|
||||
FilterListId = 2564,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/FiltersHeroes/PCCassets/main/plCDB.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2789,
|
||||
FilterListId = 2564,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.jsdelivr.net/gh/FiltersHeroes/PCCassets@main/plCDB.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2790,
|
||||
FilterListId = 2564,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://combinatronics.io/FiltersHeroes/PCCassets/main/plCDB.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2791,
|
||||
FilterListId = 2564,
|
||||
Primariness = (short)4,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gh/FiltersHeroes/PCCassets/main/plCDB.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2792,
|
||||
FilterListId = 2564,
|
||||
Primariness = (short)5,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://filtersheroes.gitlab.io/AssetsMirror/plCDB.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2793,
|
||||
FilterListId = 2565,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/FiltersHeroes/PCCassets/main/euCDB.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2794,
|
||||
FilterListId = 2565,
|
||||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.jsdelivr.net/gh/FiltersHeroes/PCCassets@main/euCDB.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2795,
|
||||
FilterListId = 2565,
|
||||
Primariness = (short)3,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://combinatronics.io/FiltersHeroes/PCCassets/main/euCDB.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2796,
|
||||
FilterListId = 2565,
|
||||
Primariness = (short)4,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://cdn.statically.io/gh/FiltersHeroes/PCCassets/main/euCDB.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2797,
|
||||
FilterListId = 2565,
|
||||
Primariness = (short)5,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://filtersheroes.gitlab.io/AssetsMirror/euCDB.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -82370,6 +82512,15 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
HomeUrl = "https://vivaldi.com/",
|
||||
Name = "Vivaldi's Privacy settings",
|
||||
SupportsAbpUrlScheme = true
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 47,
|
||||
Description = "Automatically accepts cookie policy/GDPR on websites.",
|
||||
DownloadUrl = "https://github.com/FiltersHeroes/PolishCookieConsent/#how-to-install-it",
|
||||
HomeUrl = "https://github.com/FiltersHeroes/PolishCookieConsent",
|
||||
Name = "Polish Cookie Consent",
|
||||
SupportsAbpUrlScheme = false
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -83432,6 +83583,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
SoftwareId = 46,
|
||||
SyntaxId = 48
|
||||
},
|
||||
new
|
||||
{
|
||||
SoftwareId = 47,
|
||||
SyntaxId = 56
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -83707,6 +83863,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 55,
|
||||
Name = "AdGuard Superadvanced only",
|
||||
Url = "https://kb.adguard.com/en/general/how-to-create-your-own-ad-filters"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 56,
|
||||
Name = "Polish Cookie Consent",
|
||||
Url = "https://polishannoyancefilters.netlify.app/en/PolishCookieConsent/syntax/"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue