mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #2506
This commit is contained in:
parent
31bfb116cf
commit
532a2b52eb
3 changed files with 85437 additions and 0 deletions
85377
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210812084500_2506.Designer.cs
generated
Normal file
85377
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20210812084500_2506.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,47 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
public partial class _2506 : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2471,
|
||||
column: "DonateUrl",
|
||||
value: "https://www.paypal.com/donate?hosted_button_id=M4D2NPZX5NS4C");
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "Maintainers",
|
||||
columns: new[] { "Id", "EmailAddress", "Name", "TwitterHandle", "Url" },
|
||||
values: new object[] { 162, "easydutch.adblock@gmail.com", "BPower0036", null, "https://github.com/BPower0036/" });
|
||||
|
||||
migrationBuilder.InsertData(
|
||||
table: "FilterListMaintainers",
|
||||
columns: new[] { "FilterListId", "MaintainerId" },
|
||||
values: new object[] { 2471, 162 });
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "FilterListMaintainers",
|
||||
keyColumns: new[] { "FilterListId", "MaintainerId" },
|
||||
keyValues: new object[] { 2471, 162 });
|
||||
|
||||
migrationBuilder.DeleteData(
|
||||
table: "Maintainers",
|
||||
keyColumn: "Id",
|
||||
keyValue: 162);
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "FilterLists",
|
||||
keyColumn: "Id",
|
||||
keyValue: 2471,
|
||||
column: "DonateUrl",
|
||||
value: null);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -19294,6 +19294,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
{
|
||||
Id = 2471,
|
||||
Description = "Dutch supplement for the Easylist filters to use with uBlock Origin",
|
||||
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,
|
||||
|
|
@ -31646,6 +31647,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
MaintainerId = 46
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2471,
|
||||
MaintainerId = 162
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 2472,
|
||||
MaintainerId = 158
|
||||
|
|
@ -82810,6 +82816,13 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Name = "DRS David Soft",
|
||||
TwitterHandle = "drsdavidsoft",
|
||||
Url = "https://github.com/DRSDavidSoft/"
|
||||
},
|
||||
new
|
||||
{
|
||||
Id = 162,
|
||||
EmailAddress = "easydutch.adblock@gmail.com",
|
||||
Name = "BPower0036",
|
||||
Url = "https://github.com/BPower0036/"
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue