70 lines
2.2 KiB
C#
70 lines
2.2 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Cowain.TestProject.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class baking_mode_station_wh : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Height",
|
|
table: "station_info",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "Width",
|
|
table: "station_info",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "user",
|
|
keyColumn: "Id",
|
|
keyValue: 1,
|
|
column: "CreateTime",
|
|
value: new DateTime(2026, 1, 28, 16, 1, 26, 47, DateTimeKind.Local).AddTicks(4627));
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "user_role",
|
|
keyColumn: "Id",
|
|
keyValue: 1,
|
|
column: "CreateTime",
|
|
value: new DateTime(2026, 1, 28, 16, 1, 26, 52, DateTimeKind.Local).AddTicks(3720));
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Height",
|
|
table: "station_info");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Width",
|
|
table: "station_info");
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "user",
|
|
keyColumn: "Id",
|
|
keyValue: 1,
|
|
column: "CreateTime",
|
|
value: new DateTime(2026, 1, 28, 15, 10, 33, 689, DateTimeKind.Local).AddTicks(249));
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "user_role",
|
|
keyColumn: "Id",
|
|
keyValue: 1,
|
|
column: "CreateTime",
|
|
value: new DateTime(2026, 1, 28, 15, 10, 33, 696, DateTimeKind.Local).AddTicks(8625));
|
|
}
|
|
}
|
|
}
|