mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2508
This commit is contained in:
parent
30332891e3
commit
13091e1c18
3 changed files with 85586 additions and 0 deletions
85431
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210812135514_2508.Designer.cs
generated
Normal file
85431
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210812135514_2508.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,101 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2508 : 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[] { 2519, null, "A supplement for EasyList and EasyPrivacy on Dutch domains including anti-adblock", "https://www.paypal.com/donate?hosted_button_id=8BBT5V55TGVXW", null, null, "https://github.com/JohnyP36/Personal-List", "https://github.com/JohnyP36/Personal-List/issues", 4, "Dutch Filter List", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Maintainers",
|
||||
columns: new[] { "Id", "EmailAddress", "Name", "TwitterHandle", "Url" },
|
||||
values: new object[] { 163, null, "JohnyP", null, "https://github.com/JohnyP36" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListLanguages",
|
||||
columns: new[] { "FilterListId", "Iso6391" },
|
||||
values: new object[] { 2519, "nl" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListMaintainers",
|
||||
columns: new[] { "FilterListId", "MaintainerId" },
|
||||
values: new object[] { 2519, 163 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntaxes",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2519, 4 },
|
||||
{ 2519, 6 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTags",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2519, 2 },
|
||||
{ 2519, 5 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrls",
|
||||
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
|
||||
values: new object[] { 2731, 2519, (short)1, "https://raw.githubusercontent.com/JohnyP36/Personal-List/main/Personal List (uBo).txt" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListLanguages",
|
||||
keyColumns: new[] { "FilterListId", "Iso6391" },
|
||||
keyValues: new object[] { 2519, "nl" });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2519, 163 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2519, 4 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2519, 6 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2519, 2 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2519, 5 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2731);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2519);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Maintainers",
|
||||
keyColumn: "Id",
|
||||
keyValue: 163);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19706,6 +19706,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://gitlab.com/curben/pup-filter/issues",
|
||||
LicenseId = 3,
|
||||
Name = "pup-filter (dnscrypt-proxy names)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2519,
|
||||
Description = "A supplement for EasyList and EasyPrivacy on Dutch domains including anti-adblock",
|
||||
DonateUrl = "https://www.paypal.com/donate?hosted_button_id=8BBT5V55TGVXW",
|
||||
HomeUrl = "https://github.com/JohnyP36/Personal-List",
|
||||
IssuesUrl = "https://github.com/JohnyP36/Personal-List/issues",
|
||||
LicenseId = 4,
|
||||
Name = "Dutch Filter List"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -24488,6 +24498,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2475,
|
||||
Iso6391 = "ja"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2519,
|
||||
Iso6391 = "nl"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -31810,6 +31825,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2518,
|
||||
MaintainerId = 158
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2519,
|
||||
MaintainerId = 163
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -42792,6 +42812,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2518,
|
||||
SyntaxId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2519,
|
||||
SyntaxId = 4
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2519,
|
||||
SyntaxId = 6
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -58769,6 +58799,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2518,
|
||||
TagId = 6
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2519,
|
||||
TagId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2519,
|
||||
TagId = 5
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -80371,6 +80411,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://curben.gitlab.io/malware-filter/pup-filter-dnscrypt-blocked-names.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2731,
|
||||
FilterListId = 2519,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/JohnyP36/Personal-List/main/Personal List (uBo).txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -82823,6 +82871,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
EmailAddress = "easydutch.adblock@gmail.com",
|
||||
Name = "BPower0036",
|
||||
Url = "https://github.com/BPower0036/"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 163,
|
||||
Name = "JohnyP",
|
||||
Url = "https://github.com/JohnyP36"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue