mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2343
This commit is contained in:
parent
0bb9f177d8
commit
41504bc607
3 changed files with 84391 additions and 2 deletions
84265
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210428105221_2343.Designer.cs
generated
Normal file
84265
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210428105221_2343.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,87 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2343 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2095,
|
||||
columns: new[] { "Description", "Name" },
|
||||
values: new object[] { "Enhance anti-scam capability of 280blocker adblock filter by utilizing advanced capability of AdGuard/uBlock Origin.", "Anti-scam enhancer for 280blocker adblock filter" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterLists",
|
||||
columns: new[] { "Id", "ChatUrl", "Description", "DonateUrl", "EmailAddress", "ForumUrl", "HomeUrl", "IssuesUrl", "LicenseId", "Name", "OnionUrl", "PolicyUrl", "SubmissionUrl" },
|
||||
values: new object[] { 2096, null, "Removes blogroll (feed-style mutual links) on Japanese sites. Included in Yuki's uBlock Japanese filters - Annoyances", null, null, null, "https://github.com/Yuki2718/adblock", "https://github.com/Yuki2718/adblock/issues", 28, "Yuki's Blogroll filters", null, null, null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListLanguages",
|
||||
columns: new[] { "FilterListId", "Iso6391" },
|
||||
values: new object[] { 2096, "ja" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListMaintainers",
|
||||
columns: new[] { "FilterListId", "MaintainerId" },
|
||||
values: new object[] { 2096, 150 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntaxes",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[] { 2096, 4 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTags",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[] { 2096, 9 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrls",
|
||||
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
|
||||
values: new object[] { 2683, 2096, (short)1, "https://raw.githubusercontent.com/Yuki2718/adblock/master/japanese/blogroll.txt" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListLanguages",
|
||||
keyColumns: new[] { "FilterListId", "Iso6391" },
|
||||
keyValues: new object[] { 2096, "ja" });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2096, 150 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2096, 4 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2096, 9 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2683);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2096);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2095,
|
||||
columns: new[] { "Description", "Name" },
|
||||
values: new object[] { "Enhance anti-scam capability of 280blocker for Japanese mobile site (ABP format) by utilizing advanced capability of AdGuard/uBlock Origin.", "Anti-scam enhancer for 280blocker ABP format list" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -16055,11 +16055,20 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
Id = 2095,
|
||||
Description = "Enhance anti-scam capability of 280blocker for Japanese mobile site (ABP format) by utilizing advanced capability of AdGuard/uBlock Origin.",
|
||||
Description = "Enhance anti-scam capability of 280blocker adblock filter by utilizing advanced capability of AdGuard/uBlock Origin.",
|
||||
HomeUrl = "https://github.com/Yuki2718/adblock",
|
||||
IssuesUrl = "https://github.com/Yuki2718/adblock/issues",
|
||||
LicenseId = 28,
|
||||
Name = "Anti-scam enhancer for 280blocker ABP format list"
|
||||
Name = "Anti-scam enhancer for 280blocker adblock filter"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2096,
|
||||
Description = "Removes blogroll (feed-style mutual links) on Japanese sites. Included in Yuki's uBlock Japanese filters - Annoyances",
|
||||
HomeUrl = "https://github.com/Yuki2718/adblock",
|
||||
IssuesUrl = "https://github.com/Yuki2718/adblock/issues",
|
||||
LicenseId = 28,
|
||||
Name = "Yuki's Blogroll filters"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -23132,6 +23141,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Iso6391 = "ja"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2096,
|
||||
Iso6391 = "ja"
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2101,
|
||||
Iso6391 = "zh"
|
||||
|
|
@ -30449,6 +30463,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
MaintainerId = 150
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2096,
|
||||
MaintainerId = 150
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2112,
|
||||
MaintainerId = 22
|
||||
|
|
@ -40296,6 +40315,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
SyntaxId = 4
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2096,
|
||||
SyntaxId = 4
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2099,
|
||||
SyntaxId = 22
|
||||
|
|
@ -55413,6 +55437,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
TagId = 7
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2096,
|
||||
TagId = 9
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2099,
|
||||
TagId = 6
|
||||
|
|
@ -79249,6 +79278,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://curben.gitlab.io/malware-filter/phishing-filter-rpz.conf"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2683,
|
||||
FilterListId = 2096,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/Yuki2718/adblock/master/japanese/blogroll.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue