36 lines
1.2 KiB
C#
36 lines
1.2 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
namespace Ewide.Database.Migrations.Migrations
|
|
{
|
|
public partial class Init20210426a : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<bool>(
|
|
name: "Success",
|
|
table: "sys_log_op",
|
|
type: "tinyint(1)",
|
|
nullable: true,
|
|
comment: "是否执行成功",
|
|
oldClrType: typeof(string),
|
|
oldType: "longtext CHARACTER SET utf8mb4",
|
|
oldNullable: true,
|
|
oldComment: "是否执行成功");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "Success",
|
|
table: "sys_log_op",
|
|
type: "longtext CHARACTER SET utf8mb4",
|
|
nullable: true,
|
|
comment: "是否执行成功",
|
|
oldClrType: typeof(bool),
|
|
oldType: "tinyint(1)",
|
|
oldNullable: true,
|
|
oldComment: "是否执行成功");
|
|
}
|
|
}
|
|
}
|