using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FlexJobApi.Database.Migrations.Migrations
{
///
public partial class UpdateRole0805002 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn(
name: "IsDisabled",
table: "Role",
type: "bit",
nullable: false,
defaultValue: false,
comment: "是否禁用");
migrationBuilder.AddColumn(
name: "ContactNumber",
table: "Enterprise",
type: "nvarchar(11)",
maxLength: 11,
nullable: true,
comment: "联系电话");
migrationBuilder.AddColumn(
name: "Contacts",
table: "Enterprise",
type: "nvarchar(32)",
maxLength: 32,
nullable: true,
comment: "联系人");
migrationBuilder.AddColumn(
name: "Remark",
table: "DictionaryCategory",
type: "nvarchar(max)",
nullable: true,
comment: "备注");
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsDisabled",
table: "Role");
migrationBuilder.DropColumn(
name: "ContactNumber",
table: "Enterprise");
migrationBuilder.DropColumn(
name: "Contacts",
table: "Enterprise");
migrationBuilder.DropColumn(
name: "Remark",
table: "DictionaryCategory");
}
}
}