mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(data): migrate PR #3539
This commit is contained in:
parent
ca5e59dbd4
commit
622c6b2ff4
3 changed files with 90530 additions and 6 deletions
90487
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230418195454_3539.Designer.cs
generated
Normal file
90487
services/Directory/FilterLists.Directory.Infrastructure.Migrations/Migrations/20230418195454_3539.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -0,0 +1,42 @@
|
|||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class _3539 : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DeleteData(
|
||||
table: "filter_list_maintainers",
|
||||
keyColumns: new[] { "filter_list_id", "maintainer_id" },
|
||||
keyValues: new object[] { 884L, 134L });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 884L, 932L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/finnish-easylist-addition/finnish-easylist-addition/gh-pages/Finland_adb.txt");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.InsertData(
|
||||
table: "filter_list_maintainers",
|
||||
columns: new[] { "filter_list_id", "maintainer_id" },
|
||||
values: new object[] { 884L, 134L });
|
||||
|
||||
migrationBuilder.UpdateData(
|
||||
table: "filter_list_view_urls",
|
||||
keyColumns: new[] { "filter_list_id", "id" },
|
||||
keyValues: new object[] { 884L, 932L },
|
||||
column: "url",
|
||||
value: "https://raw.githubusercontent.com/finnish-easylist-addition/finnish-easylist-addition/master/Finland_adb.txt");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -29606,11 +29606,6 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
MaintainerId = 108L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 884L,
|
||||
MaintainerId = 134L
|
||||
},
|
||||
new
|
||||
{
|
||||
FilterListId = 885L,
|
||||
MaintainerId = 109L
|
||||
|
|
@ -75475,7 +75470,7 @@ protected override void BuildModel(ModelBuilder modelBuilder)
|
|||
Id = 932L,
|
||||
Primariness = (short)1,
|
||||
SegmentNumber = (short)0,
|
||||
Url = "https://raw.githubusercontent.com/finnish-easylist-addition/finnish-easylist-addition/master/Finland_adb.txt"
|
||||
Url = "https://raw.githubusercontent.com/finnish-easylist-addition/finnish-easylist-addition/gh-pages/Finland_adb.txt"
|
||||
},
|
||||
new
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue