feat(data): migrate PR #3457

This commit is contained in:
Azure Pipelines EF Migration Bot 2023-03-08 22:09:59 +00:00 committed by Collin Barrett
parent 9bf651160c
commit 15a05a6308
3 changed files with 90416 additions and 2 deletions

View file

@ -0,0 +1,70 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional
namespace FilterLists.Directory.Infrastructure.Migrations.Migrations
{
/// <inheritdoc />
public partial class _3457 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2152L, 54L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2316L, 54L });
migrationBuilder.InsertData(
table: "filter_list_syntaxes",
columns: new[] { "filter_list_id", "syntax_id" },
values: new object[,]
{
{ 2152L, 1L },
{ 2152L, 36L },
{ 2316L, 1L },
{ 2316L, 36L }
});
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2152L, 1L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2152L, 36L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2316L, 1L });
migrationBuilder.DeleteData(
table: "filter_list_syntaxes",
keyColumns: new[] { "filter_list_id", "syntax_id" },
keyValues: new object[] { 2316L, 36L });
migrationBuilder.InsertData(
table: "filter_list_syntaxes",
columns: new[] { "filter_list_id", "syntax_id" },
values: new object[,]
{
{ 2152L, 54L },
{ 2316L, 54L }
});
}
}
}

View file

@ -43675,7 +43675,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
new
{
FilterListId = 2152L,
SyntaxId = 54L
SyntaxId = 1L
},
new
{
FilterListId = 2152L,
SyntaxId = 36L
},
new
{
@ -44405,7 +44410,12 @@ protected override void BuildModel(ModelBuilder modelBuilder)
new
{
FilterListId = 2316L,
SyntaxId = 54L
SyntaxId = 1L
},
new
{
FilterListId = 2316L,
SyntaxId = 36L
},
new
{