mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2373
This commit is contained in:
parent
5a1e2d37ae
commit
fba9ea950a
3 changed files with 85134 additions and 0 deletions
85037
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210509223212_2373.Designer.cs
generated
Normal file
85037
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210509223212_2373.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,63 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2373 : 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[] { 2497, null, "Filter that enhances privacy by removing tracking parameters from URLs.", null, null, "https://forum.adguard.com/index.php?categories/filter-rules.66/", "https://github.com/AdguardTeam/AdguardFilters", "https://github.com/AdguardTeam/AdguardFilters/issues", 12, "AdGuard URL Tracking filter", null, "https://kb.adguard.com/en/general/adguard-filter-policy", null });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListMaintainers",
|
||||
columns: new[] { "FilterListId", "MaintainerId" },
|
||||
values: new object[] { 2497, 46 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntaxes",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[] { 2497, 55 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTags",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[] { 2497, 3 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrls",
|
||||
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
|
||||
values: new object[] { 2708, 2497, (short)1, "https://filters.adtidy.org/windows/filters/17.txt" });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2497, 46 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2497, 55 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2497, 3 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2708);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2497);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19604,6 +19604,17 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
LicenseId = 4,
|
||||
Name = "XPI's Filter List",
|
||||
SubmissionUrl = "https://github.com/troysjanda/MyBlockLists/issues"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2497,
|
||||
Description = "Filter that enhances privacy by removing tracking parameters from URLs.",
|
||||
ForumUrl = "https://forum.adguard.com/index.php?categories/filter-rules.66/",
|
||||
HomeUrl = "https://github.com/AdguardTeam/AdguardFilters",
|
||||
IssuesUrl = "https://github.com/AdguardTeam/AdguardFilters/issues",
|
||||
LicenseId = 12,
|
||||
Name = "AdGuard URL Tracking filter",
|
||||
PolicyUrl = "https://kb.adguard.com/en/general/adguard-filter-policy"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -31713,6 +31724,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2496,
|
||||
MaintainerId = 160
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2497,
|
||||
MaintainerId = 46
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -42620,6 +42636,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2496,
|
||||
SyntaxId = 4
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2497,
|
||||
SyntaxId = 55
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -58522,6 +58543,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2496,
|
||||
TagId = 2
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2497,
|
||||
TagId = 3
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -80012,6 +80038,14 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/Yuki2718/adblock/master/adguard/anti-antiadb.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2708,
|
||||
FilterListId = 2497,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://filters.adtidy.org/windows/filters/17.txt"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue