using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FlexJobApi.Database.Migrations.Migrations
{
///
public partial class UpdateUser0805 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "Remark",
table: "UserInfo",
type: "nvarchar(max)",
nullable: true,
comment: "备注");
migrationBuilder.AddColumn(
name: "Status",
table: "UserInfo",
type: "int",
nullable: false,
defaultValue: 0,
comment: "状态");
migrationBuilder.AlterColumn(
name: "Remark",
table: "Role",
type: "nvarchar(max)",
nullable: true,
comment: "备注",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "DataPower",
table: "Role",
type: "int",
nullable: false,
comment: "数据权限",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.UpdateData(
table: "UserInfo",
keyColumn: "Id",
keyValue: new Guid("11111111-1111-1111-1111-111111111112"),
columns: new[] { "Remark", "Status" },
values: new object[] { null, 0 });
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Remark",
table: "UserInfo");
migrationBuilder.DropColumn(
name: "Status",
table: "UserInfo");
migrationBuilder.AlterColumn(
name: "Remark",
table: "Role",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "备注");
migrationBuilder.AlterColumn(
name: "DataPower",
table: "Role",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "数据权限");
}
}
}