using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FlexJobApi.Database.Migrations.Migrations
{
///
public partial class UpdateUser0820 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ElectronSignUserId",
table: "User");
migrationBuilder.DropColumn(
name: "RealAccess",
table: "User");
migrationBuilder.DropColumn(
name: "Controller",
table: "Resource");
migrationBuilder.DropColumn(
name: "Service",
table: "Resource");
migrationBuilder.AddColumn(
name: "Age",
table: "UserAuth",
type: "int",
nullable: true);
migrationBuilder.AddColumn(
name: "Birthday",
table: "UserAuth",
type: "datetime2",
nullable: true);
migrationBuilder.AddColumn(
name: "ElectronSignUserId",
table: "UserAuth",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.AddColumn(
name: "FaceRealUrl",
table: "UserAuth",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn(
name: "Gender",
table: "UserAuth",
type: "int",
nullable: true);
migrationBuilder.AddColumn(
name: "RealAccess",
table: "UserAuth",
type: "int",
nullable: true);
migrationBuilder.AddColumn(
name: "RealFailMessage",
table: "UserAuth",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn(
name: "RealStatus",
table: "UserAuth",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn(
name: "ControllerName",
table: "Resource",
type: "nvarchar(max)",
nullable: true);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Age",
table: "UserAuth");
migrationBuilder.DropColumn(
name: "Birthday",
table: "UserAuth");
migrationBuilder.DropColumn(
name: "ElectronSignUserId",
table: "UserAuth");
migrationBuilder.DropColumn(
name: "FaceRealUrl",
table: "UserAuth");
migrationBuilder.DropColumn(
name: "Gender",
table: "UserAuth");
migrationBuilder.DropColumn(
name: "RealAccess",
table: "UserAuth");
migrationBuilder.DropColumn(
name: "RealFailMessage",
table: "UserAuth");
migrationBuilder.DropColumn(
name: "RealStatus",
table: "UserAuth");
migrationBuilder.DropColumn(
name: "ControllerName",
table: "Resource");
migrationBuilder.AddColumn(
name: "ElectronSignUserId",
table: "User",
type: "uniqueidentifier",
nullable: true);
migrationBuilder.AddColumn(
name: "RealAccess",
table: "User",
type: "int",
nullable: true);
migrationBuilder.AddColumn(
name: "Controller",
table: "Resource",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn(
name: "Service",
table: "Resource",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.UpdateData(
table: "User",
keyColumn: "Id",
keyValue: new Guid("11111111-1111-1111-1111-111111111111"),
columns: new[] { "ElectronSignUserId", "RealAccess" },
values: new object[] { null, null });
}
}
}