33 lines
955 B
C#
33 lines
955 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace JiShe.IoT.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class update20251231 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "UpgradeDescription",
|
|
table: "ServiceProDeviceUpgradeRecord",
|
|
type: "varchar(512)",
|
|
maxLength: 512,
|
|
nullable: false,
|
|
defaultValue: "",
|
|
comment: "升级描述")
|
|
.Annotation("MySql:CharSet", "utf8mb4");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "UpgradeDescription",
|
|
table: "ServiceProDeviceUpgradeRecord");
|
|
}
|
|
}
|
|
}
|