feat(data): migrate PR #2368

This commit is contained in:
Azure Pipelines EF Migration Bot 2021-05-06 00:40:50 +00:00 committed by Collin M. Barrett
parent 765e86c7d6
commit febac6c4ac
3 changed files with 85091 additions and 0 deletions

View file

@ -0,0 +1,52 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
public partial class _2368 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData(
table: "FilterListSyntaxes",
columns: new[] { "FilterListId", "SyntaxId" },
values: new object[] { 2496, 4 });
migrationBuilder.InsertData(
table: "Maintainers",
columns: new[] { "Id", "EmailAddress", "Name", "TwitterHandle", "Url" },
values: new object[] { 160, null, "Troy Janda", null, "https://github.com/troysjanda/MyBlockLists" });
migrationBuilder.InsertData(
table: "FilterListMaintainers",
columns: new[] { "FilterListId", "MaintainerId" },
values: new object[,]
{
{ 2065, 160 },
{ 2496, 160 }
});
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "FilterListMaintainers",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 2065, 160 });
migrationBuilder.DeleteData(
table: "FilterListMaintainers",
keyColumns: new[] { "FilterListId", "MaintainerId" },
keyValues: new object[] { 2496, 160 });
migrationBuilder.DeleteData(
table: "FilterListSyntaxes",
keyColumns: new[] { "FilterListId", "SyntaxId" },
keyValues: new object[] { 2496, 4 });
migrationBuilder.DeleteData(
table: "Maintainers",
keyColumn: "Id",
keyValue: 160);
}
}
}

View file

@ -30610,6 +30610,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
MaintainerId = 148
},
new
{
FilterListId = 2065,
MaintainerId = 160
},
new
{
FilterListId = 2070,
MaintainerId = 148
@ -31708,6 +31713,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2495,
MaintainerId = 158
},
new
{
FilterListId = 2496,
MaintainerId = 160
});
});
@ -42615,6 +42625,11 @@ protected override void BuildModel(ModelBuilder modelBuilder)
{
FilterListId = 2486,
SyntaxId = 25
},
new
{
FilterListId = 2496,
SyntaxId = 4
});
});
@ -82443,6 +82458,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
Id = 159,
Name = "hirorpt",
Url = "https://github.com/hirorpt"
},
new
{
Id = 160,
Name = "Troy Janda",
Url = "https://github.com/troysjanda/MyBlockLists"
});
});