42 lines
1.2 KiB
C#
42 lines
1.2 KiB
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
namespace SessionCompanion.Database.Migrations
|
|||
|
{
|
|||
|
public partial class shopkeepersupdate : Migration
|
|||
|
{
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Shopkeepers",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 3,
|
|||
|
column: "IsAvailable",
|
|||
|
value: false);
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Shopkeepers",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 5,
|
|||
|
column: "IsAvailable",
|
|||
|
value: false);
|
|||
|
}
|
|||
|
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Shopkeepers",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 3,
|
|||
|
column: "IsAvailable",
|
|||
|
value: true);
|
|||
|
|
|||
|
migrationBuilder.UpdateData(
|
|||
|
table: "Shopkeepers",
|
|||
|
keyColumn: "Id",
|
|||
|
keyValue: 5,
|
|||
|
column: "IsAvailable",
|
|||
|
value: true);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|