mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2526
This commit is contained in:
parent
ac59f61b81
commit
d9a0a1a195
3 changed files with 85660 additions and 0 deletions
85500
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210830145021_2526.Designer.cs
generated
Normal file
85500
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210830145021_2526.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,99 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2526 : 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[,]
|
||||
{
|
||||
{ 2520, null, "Dynamic rules for uBlock Origin for 3p-frame unblocking only", "https://www.paypal.com/donate?hosted_button_id=M4D2NPZX5NS4C", null, null, "https://github.com/BPower0036/AdBlockFilters/", "https://github.com/BPower0036/AdBlockFilters/issues", 4, "Dynamic rules (uBo)", null, null, null },
|
||||
{ 2521, null, "Personal filter list (My filters)", "https://www.paypal.com/donate?hosted_button_id=M4D2NPZX5NS4C", null, null, "https://github.com/BPower0036/AdBlockFilters/", "https://github.com/BPower0036/AdBlockFilters/issues", 4, "Personal filter list (My filters) (uBo)", null, null, null }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListMaintainers",
|
||||
columns: new[] { "FilterListId", "MaintainerId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2520, 162 },
|
||||
{ 2521, 162 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListSyntaxes",
|
||||
columns: new[] { "FilterListId", "SyntaxId" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2520, 7 },
|
||||
{ 2521, 4 }
|
||||
});
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListTags",
|
||||
columns: new[] { "FilterListId", "TagId" },
|
||||
values: new object[] { 2520, 3 });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListViewUrls",
|
||||
columns: new[] { "Id", "FilterListId", "Primariness", "Url" },
|
||||
values: new object[,]
|
||||
{
|
||||
{ 2733, 2520, (short)1, "https://raw.githubusercontent.com/BPower0036/AdBlockFilters/main/dynamic rules" },
|
||||
{ 2734, 2521, (short)1, "https://raw.githubusercontent.com/BPower0036/AdBlockFilters/main/my filters" }
|
||||
});
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2520, 162 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2521, 162 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2520, 7 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListSyntaxes",
|
||||
keyColumns: new[] { "FilterListId", "SyntaxId" },
|
||||
keyValues: new object[] { 2521, 4 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListTags",
|
||||
keyColumns: new[] { "FilterListId", "TagId" },
|
||||
keyValues: new object[] { 2520, 3 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2733);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListViewUrls",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2734);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2520);
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2521);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19716,6 +19716,26 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
IssuesUrl = "https://github.com/JohnyP36/Personal-List/issues",
|
||||
LicenseId = 4,
|
||||
Name = "Dutch Filter List"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2520,
|
||||
Description = "Dynamic rules for uBlock Origin for 3p-frame unblocking only",
|
||||
DonateUrl = "https://www.paypal.com/donate?hosted_button_id=M4D2NPZX5NS4C",
|
||||
HomeUrl = "https://github.com/BPower0036/AdBlockFilters/",
|
||||
IssuesUrl = "https://github.com/BPower0036/AdBlockFilters/issues",
|
||||
LicenseId = 4,
|
||||
Name = "Dynamic rules (uBo)"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2521,
|
||||
Description = "Personal filter list (My filters)",
|
||||
DonateUrl = "https://www.paypal.com/donate?hosted_button_id=M4D2NPZX5NS4C",
|
||||
HomeUrl = "https://github.com/BPower0036/AdBlockFilters/",
|
||||
IssuesUrl = "https://github.com/BPower0036/AdBlockFilters/issues",
|
||||
LicenseId = 4,
|
||||
Name = "Personal filter list (My filters) (uBo)"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -31830,6 +31850,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2519,
|
||||
MaintainerId = 163
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2520,
|
||||
MaintainerId = 162
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2521,
|
||||
MaintainerId = 162
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -42822,6 +42852,16 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2519,
|
||||
SyntaxId = 6
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2520,
|
||||
SyntaxId = 7
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2521,
|
||||
SyntaxId = 4
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -58809,6 +58849,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
FilterListId = 2519,
|
||||
TagId = 5
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2520,
|
||||
TagId = 3
|
||||
});
|
||||
});
|
||||
|
||||
|
|
@ -80427,6 +80472,22 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Primariness = (short)2,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://gitlab.com/BPower0036/AdBlockFilters/-/raw/main/easydutch.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2733,
|
||||
FilterListId = 2520,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/BPower0036/AdBlockFilters/main/dynamic rules"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 2734,
|
||||
FilterListId = 2521,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/BPower0036/AdBlockFilters/main/my filters"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue