using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FlexJobApi.Database.Migrations.Migrations
{
///
public partial class UpdateUser0801 : Migration
{
///
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_UserInfo_UserAuth_UserAuthId",
table: "UserInfo");
migrationBuilder.DropColumn(
name: "UserId",
table: "UserInfo");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "WebApi",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "WebApi",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "WebApi",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "WebApi",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "WebApi",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoRole",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoRole",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoRole",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoRole",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoRole",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoPhoto",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoPhoto",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoPhoto",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoPhoto",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoPhoto",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoExpectJob",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoExpectJob",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoExpectJob",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoExpectJob",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoExpectJob",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoDepartment",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoDepartment",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoDepartment",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoDepartment",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoDepartment",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoCredential",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoCredential",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoCredential",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoCredential",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoCredential",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoBankCard",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoBankCard",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoBankCard",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoBankCard",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoBankCard",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UserAuthId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfo",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfo",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfo",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserAuth",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserAuth",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserAuth",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserAuth",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserAuth",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "TaskInfoUser",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "TaskInfoUser",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "TaskInfoUser",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "TaskInfoUser",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "TaskInfoUser",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "TaskInfoCredentialLimit",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "TaskInfoCredentialLimit",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "TaskInfoCredentialLimit",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "TaskInfoCredentialLimit",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "TaskInfoCredentialLimit",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "TaskInfoBenefit",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "TaskInfoBenefit",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "TaskInfoBenefit",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "TaskInfoBenefit",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "TaskInfoBenefit",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "TaskInfo",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "TaskInfo",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "TaskInfo",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "TaskInfo",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "TaskInfo",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "RoleWebApi",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "RoleWebApi",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "RoleWebApi",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "RoleWebApi",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "RoleWebApi",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "RoleMenu",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "RoleMenu",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "RoleMenu",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "RoleMenu",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "RoleMenu",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "Role",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "Role",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "Role",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "Role",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "Role",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "Menu",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "Menu",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "Menu",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "Menu",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "Menu",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "FileVirtualPath",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "FileVirtualPath",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "FileVirtualPath",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "FileVirtualPath",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "FileVirtualPath",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "FileStore",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "FileStore",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "FileStore",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "FileStore",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "FileStore",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "Enterprise",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "Enterprise",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "Enterprise",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "Enterprise",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "Enterprise",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "DictionaryData",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "DictionaryData",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "DictionaryData",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "DictionaryData",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "DictionaryData",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "DictionaryCategory",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "DictionaryCategory",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "DictionaryCategory",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "DictionaryCategory",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "DictionaryCategory",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "Department",
type: "uniqueidentifier",
nullable: true,
comment: "最后更新操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "TraceId",
table: "Department",
type: "nvarchar(max)",
nullable: true,
comment: "跟踪Id",
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn(
name: "Sort",
table: "Department",
type: "int",
nullable: false,
comment: "排序",
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "Department",
type: "bit",
nullable: false,
comment: "是否删除",
oldClrType: typeof(bool),
oldType: "bit");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "Department",
type: "uniqueidentifier",
nullable: true,
comment: "创建操作人",
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true);
migrationBuilder.UpdateData(
table: "UserInfo",
keyColumn: "Id",
keyValue: new Guid("11111111-1111-1111-1111-111111111112"),
column: "UserAuthId",
value: new Guid("11111111-1111-1111-1111-111111111111"));
migrationBuilder.AddForeignKey(
name: "FK_UserInfo_UserAuth_UserAuthId",
table: "UserInfo",
column: "UserAuthId",
principalTable: "UserAuth",
principalColumn: "Id",
onDelete: ReferentialAction.Cascade);
}
///
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_UserInfo_UserAuth_UserAuthId",
table: "UserInfo");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "WebApi",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "WebApi",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "WebApi",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "WebApi",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "WebApi",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoRole",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoRole",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoRole",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoRole",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoRole",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoPhoto",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoPhoto",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoPhoto",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoPhoto",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoPhoto",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoExpectJob",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoExpectJob",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoExpectJob",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoExpectJob",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoExpectJob",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoDepartment",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoDepartment",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoDepartment",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoDepartment",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoDepartment",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoCredential",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoCredential",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoCredential",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoCredential",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoCredential",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfoBankCard",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfoBankCard",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfoBankCard",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfoBankCard",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfoBankCard",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UserAuthId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserInfo",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserInfo",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserInfo",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AddColumn(
name: "UserId",
table: "UserInfo",
type: "uniqueidentifier",
nullable: false,
defaultValue: new Guid("00000000-0000-0000-0000-000000000000"),
comment: "用户Id");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "UserAuth",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "UserAuth",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "UserAuth",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "UserAuth",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "UserAuth",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "TaskInfoUser",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "TaskInfoUser",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "TaskInfoUser",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "TaskInfoUser",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "TaskInfoUser",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "TaskInfoCredentialLimit",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "TaskInfoCredentialLimit",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "TaskInfoCredentialLimit",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "TaskInfoCredentialLimit",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "TaskInfoCredentialLimit",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "TaskInfoBenefit",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "TaskInfoBenefit",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "TaskInfoBenefit",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "TaskInfoBenefit",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "TaskInfoBenefit",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "TaskInfo",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "TaskInfo",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "TaskInfo",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "TaskInfo",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "TaskInfo",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "RoleWebApi",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "RoleWebApi",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "RoleWebApi",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "RoleWebApi",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "RoleWebApi",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "RoleMenu",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "RoleMenu",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "RoleMenu",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "RoleMenu",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "RoleMenu",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "Role",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "Role",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "Role",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "Role",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "Role",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "Menu",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "Menu",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "Menu",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "Menu",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "Menu",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "FileVirtualPath",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "FileVirtualPath",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "FileVirtualPath",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "FileVirtualPath",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "FileVirtualPath",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "FileStore",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "FileStore",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "FileStore",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "FileStore",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "FileStore",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "Enterprise",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "Enterprise",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "Enterprise",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "Enterprise",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "Enterprise",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "DictionaryData",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "DictionaryData",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "DictionaryData",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "DictionaryData",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "DictionaryData",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "DictionaryCategory",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "DictionaryCategory",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "DictionaryCategory",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "DictionaryCategory",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "DictionaryCategory",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.AlterColumn(
name: "UpdatedUserInfoId",
table: "Department",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "最后更新操作人");
migrationBuilder.AlterColumn(
name: "TraceId",
table: "Department",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true,
oldComment: "跟踪Id");
migrationBuilder.AlterColumn(
name: "Sort",
table: "Department",
type: "int",
nullable: false,
oldClrType: typeof(int),
oldType: "int",
oldComment: "排序");
migrationBuilder.AlterColumn(
name: "IsDeleted",
table: "Department",
type: "bit",
nullable: false,
oldClrType: typeof(bool),
oldType: "bit",
oldComment: "是否删除");
migrationBuilder.AlterColumn(
name: "CreatedUserInfoId",
table: "Department",
type: "uniqueidentifier",
nullable: true,
oldClrType: typeof(Guid),
oldType: "uniqueidentifier",
oldNullable: true,
oldComment: "创建操作人");
migrationBuilder.UpdateData(
table: "UserInfo",
keyColumn: "Id",
keyValue: new Guid("11111111-1111-1111-1111-111111111112"),
columns: new[] { "UserAuthId", "UserId" },
values: new object[] { null, new Guid("11111111-1111-1111-1111-111111111111") });
migrationBuilder.AddForeignKey(
name: "FK_UserInfo_UserAuth_UserAuthId",
table: "UserInfo",
column: "UserAuthId",
principalTable: "UserAuth",
principalColumn: "Id");
}
}
}