mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3001
This commit is contained in:
parent
82d1001ed1
commit
9f34873788
3 changed files with 88798 additions and 6 deletions
88709
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220505102415_3001.Designer.cs
generated
Normal file
88709
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20220505102415_3001.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,83 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _3001 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2095L, 6L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2095L, 6L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 2095L, 3L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 2095L, 10L });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2095L, 2202L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/Yuki2718/adblock/master/adguard/dns-unbreak.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2095L,
|
||||
columns: new[] { "description", "license_id", "name" },
|
||||
values: new object[] { "This list fixes known problems in AdGuard DNS filter mostly for Japanese user.", 8L, "AdGuard DNS filter Unbreaker for Japanese" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_syntaxes",
|
||||
keyColumns: new[] { "filter_list_id", "syntax_id" },
|
||||
keyValues: new object[] { 2095L, 3L });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_tags",
|
||||
keyColumns: new[] { "filter_list_id", "tag_id" },
|
||||
keyValues: new object[] { 2095L, 10L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_syntaxes",
|
||||
columns: new[] { "filter_list_id", "syntax_id" },
|
||||
values: new object[] { 2095L, 6L });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_tags",
|
||||
columns: new[] { "filter_list_id", "tag_id" },
|
||||
values: new object[] { 2095L, 6L });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 2095L, 2202L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/Yuki2718/adblock/master/japanese/280-patch.txt");
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_lists",
|
||||
keyColumn: "id",
|
||||
keyValue: 2095L,
|
||||
columns: new[] { "description", "license_id", "name" },
|
||||
values: new object[] { "Enhance anti-scam capability of 280blocker adblock filter by utilizing advanced capability of AdGuard/uBlock Origin.", 28L, "Anti-scam enhancer for 280blocker adblock filter" });
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -17255,12 +17255,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
Id = 2095L,
|
||||
Description = "Enhance anti-scam capability of 280blocker adblock filter by utilizing advanced capability of AdGuard/uBlock Origin.",
|
||||
Description = "This list fixes known problems in AdGuard DNS filter mostly for Japanese user.",
|
||||
HomeUrl = "https://github.com/Yuki2718/adblock",
|
||||
IsApproved = true,
|
||||
IssuesUrl = "https://github.com/Yuki2718/adblock/issues",
|
||||
LicenseId = 28L,
|
||||
Name = "Anti-scam enhancer for 280blocker adblock filter"
|
||||
LicenseId = 8L,
|
||||
Name = "AdGuard DNS filter Unbreaker for Japanese"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -42868,7 +42868,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
FilterListId = 2095L,
|
||||
SyntaxId = 6L
|
||||
SyntaxId = 3L
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -58029,7 +58029,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
new
|
||||
{
|
||||
FilterListId = 2095L,
|
||||
TagId = 6L
|
||||
TagId = 10L
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
@ -83661,7 +83661,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 2202L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/Yuki2718/adblock/master/japanese/280-patch.txt"
|
||||
Url = "https://raw.githubusercontent.com/Yuki2718/adblock/master/adguard/dns-unbreak.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue