session-companion/SessionCompanion/SessionCompanion.Database/Migrations/20210120173104_shopkeepers-items.cs

179 lines
5.1 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
namespace SessionCompanion.Database.Migrations
{
public partial class shopkeepersitems : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "Amount",
table: "ShopkeeperItems",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 1,
column: "Amount",
value: 3);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 2,
column: "Amount",
value: 5);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 3,
column: "Amount",
value: 20);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 4,
column: "Amount",
value: 34);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 5,
column: "Amount",
value: 12);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 6,
column: "Amount",
value: 48);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 7,
column: "Amount",
value: 25);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 8,
column: "Amount",
value: 34);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 9,
column: "Amount",
value: 44);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 10,
column: "Amount",
value: 2);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 11,
column: "Amount",
value: 21);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 12,
column: "Amount",
value: 36);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 13,
column: "Amount",
value: 5);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 14,
column: "Amount",
value: 13);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 15,
column: "Amount",
value: 19);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 16,
column: "Amount",
value: 17);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 17,
column: "Amount",
value: 3);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 18,
column: "Amount",
value: 1);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 19,
column: "Amount",
value: 6);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 20,
column: "Amount",
value: 9);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 21,
column: "Amount",
value: 12);
migrationBuilder.UpdateData(
table: "ShopkeeperItems",
keyColumn: "Id",
keyValue: 22,
column: "Amount",
value: 6);
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Amount",
table: "ShopkeeperItems");
}
}
}