mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2342
This commit is contained in:
parent
78ea6b3e0c
commit
cbc554b6d7
3 changed files with 84434 additions and 0 deletions
84308
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210428122336_2342.Designer.cs
generated
Normal file
84308
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210428122336_2342.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,83 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2342 : 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[] { 2475, null, "This allowlist fixes incorrect blocking by standard filters such as EasyList, mainly on Japanese websites. It is based largely on Yuki's uBlock Japanese filters.", null, null, null, "https://github.com/hirorpt/filters", "https://github.com/hirorpt/filters/issues", 28, "Konayuki filters", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Maintainers",
|
||||
columns: new[] { "Id", "EmailAddress", "Name", "TwitterHandle", "Url" },
|
||||
values: new object[] { 159, null, "hirorpt", null, "https://github.com/hirorpt" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListLanguages",
|
||||
columns: new[] { "FilterListId", "Iso6391" },
|
||||
values: new object[] { 2475, "ja" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListMaintainers",
|
||||
columns: new[] { "FilterListId", "MaintainerId" },
|
||||
values: new object[] { 2475, 159 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntaxes",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[] { 2475, 4 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTags",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[] { 2475, 10 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrls",
|
||||
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
|
||||
values: new object[] { 2684, 2475, (short)1, "https://raw.githubusercontent.com/hirorpt/filters/main/fix.txt" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListLanguages",
|
||||
keyColumns: new[] { "FilterListId", "Iso6391" },
|
||||
keyValues: new object[] { 2475, "ja" });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2475, 159 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2475, 4 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2475, 10 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2684);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2475);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Maintainers",
|
||||
keyColumn: "Id",
|
||||
keyValue: 159);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19387,6 +19387,15 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/beerisgood/beer_blocklist/issues",
|
||||
LicenseId = 5,
|
||||
Name = "beer_blocklist"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2475,
|
||||
Description = "This allowlist fixes incorrect blocking by standard filters such as EasyList, mainly on Japanese websites. It is based largely on Yuki's uBlock Japanese filters.",
|
||||
HomeUrl = "https://github.com/hirorpt/filters",
|
||||
IssuesUrl = "https://github.com/hirorpt/filters/issues",
|
||||
LicenseId = 28,
|
||||
Name = "Konayuki filters"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -24174,6 +24183,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2471,
|
||||
Iso6391 = "nl"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2475,
|
||||
Iso6391 = "ja"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -31361,6 +31375,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2473,
|
||||
MaintainerId = 158
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2475,
|
||||
MaintainerId = 159
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -42198,6 +42217,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2473,
|
||||
SyntaxId = 25
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2475,
|
||||
SyntaxId = 4
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -57980,6 +58004,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2473,
|
||||
TagId = 7
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2475,
|
||||
TagId = 10
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -79286,6 +79315,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/Yuki2718/adblock/master/japanese/blogroll.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2684,
|
||||
FilterListId = 2475,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/hirorpt/filters/main/fix.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -81711,6 +81748,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 158,
|
||||
Name = "Ming Di Leom",
|
||||
Url = "https://mdleom.com/"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 159,
|
||||
Name = "hirorpt",
|
||||
Url = "https://github.com/hirorpt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue