using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace FlexJobApi.Database.Migrations.Migrations.LogDb { /// public partial class UpdateResourceLog : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Url", table: "ResourceLog"); migrationBuilder.RenameColumn( name: "Headers", table: "ResourceLog", newName: "ResponseHeaders"); migrationBuilder.RenameColumn( name: "Callback", table: "ResourceLog", newName: "Response"); migrationBuilder.AlterTable( name: "SmsLog", oldComment: "短信日志"); migrationBuilder.AlterTable( name: "QueueLog", oldComment: "消息队列日志"); migrationBuilder.AlterTable( name: "ExceptionLog", oldComment: "异常日志"); migrationBuilder.AlterTable( name: "DbAuditLog", oldComment: "数据库审计日志"); migrationBuilder.AlterTable( name: "ConsoleLog", oldComment: "控制台日志"); migrationBuilder.AlterColumn( name: "UpdateUserInfoId", table: "SmsLog", type: "uniqueidentifier", nullable: true, oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true, oldComment: "最后更新操作人"); migrationBuilder.AlterColumn( name: "TraceId", table: "SmsLog", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true, oldComment: "跟踪Id"); migrationBuilder.AlterColumn( name: "TemplateParam", table: "SmsLog", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true, oldComment: "模板参数"); migrationBuilder.AlterColumn( name: "TemplateCode", table: "SmsLog", type: "nvarchar(128)", maxLength: 128, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(128)", oldMaxLength: 128, oldComment: "模板代码"); migrationBuilder.AlterColumn( name: "Sort", table: "SmsLog", type: "int", nullable: false, oldClrType: typeof(int), oldType: "int", oldComment: "排序"); migrationBuilder.AlterColumn( name: "PhoneNumber", table: "SmsLog", type: "nvarchar(11)", maxLength: 11, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(11)", oldMaxLength: 11, oldComment: "手机号码"); migrationBuilder.AlterColumn( name: "IsUsed", table: "SmsLog", type: "bit", nullable: false, oldClrType: typeof(bool), oldType: "bit", oldComment: "是否使用"); migrationBuilder.AlterColumn( name: "IsDeleted", table: "SmsLog", type: "bit", nullable: false, oldClrType: typeof(bool), oldType: "bit", oldComment: "是否删除"); migrationBuilder.AlterColumn( name: "Expiry", table: "SmsLog", type: "datetime2", nullable: true, oldClrType: typeof(DateTime), oldType: "datetime2", oldNullable: true, oldComment: "有效期"); migrationBuilder.AlterColumn( name: "CreatedUserInfoId", table: "SmsLog", type: "uniqueidentifier", nullable: true, oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true, oldComment: "创建操作人"); migrationBuilder.AlterColumn( name: "Access", table: "SmsLog", type: "int", nullable: false, oldClrType: typeof(int), oldType: "int", oldComment: "通道"); migrationBuilder.AlterColumn( name: "UpdateUserInfoId", table: "ResourceLog", type: "uniqueidentifier", nullable: true, oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true, oldComment: "最后更新操作人"); migrationBuilder.AlterColumn( name: "TraceId", table: "ResourceLog", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true, oldComment: "跟踪Id"); migrationBuilder.AlterColumn( name: "Sort", table: "ResourceLog", type: "int", nullable: false, oldClrType: typeof(int), oldType: "int", oldComment: "排序"); migrationBuilder.AlterColumn( name: "Method", table: "ResourceLog", type: "int", nullable: false, oldClrType: typeof(string), oldType: "nvarchar(6)", oldMaxLength: 6); migrationBuilder.AlterColumn( name: "IsDeleted", table: "ResourceLog", type: "bit", nullable: false, oldClrType: typeof(bool), oldType: "bit", oldComment: "是否删除"); migrationBuilder.AlterColumn( name: "CreatedUserInfoId", table: "ResourceLog", type: "uniqueidentifier", nullable: true, oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true, oldComment: "创建操作人"); migrationBuilder.AddColumn( name: "Domain", table: "ResourceLog", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "Path", table: "ResourceLog", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "RefererUrl", table: "ResourceLog", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "RequestHeaders", table: "ResourceLog", type: "nvarchar(max)", nullable: true); migrationBuilder.AlterColumn( name: "UpdateUserInfoId", table: "QueueLog", type: "uniqueidentifier", nullable: true, oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true, oldComment: "最后更新操作人"); migrationBuilder.AlterColumn( name: "TraceId", table: "QueueLog", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true, oldComment: "跟踪Id"); migrationBuilder.AlterColumn( name: "Sort", table: "QueueLog", type: "int", nullable: false, oldClrType: typeof(int), oldType: "int", oldComment: "排序"); migrationBuilder.AlterColumn( name: "IsDeleted", table: "QueueLog", type: "bit", nullable: false, oldClrType: typeof(bool), oldType: "bit", oldComment: "是否删除"); migrationBuilder.AlterColumn( name: "IsConsumOnce", table: "QueueLog", type: "bit", nullable: false, oldClrType: typeof(bool), oldType: "bit", oldComment: "消息是否只消费一次"); migrationBuilder.AlterColumn( name: "EventId", table: "QueueLog", type: "nvarchar(128)", maxLength: 128, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(128)", oldMaxLength: 128, oldComment: "事件Id"); migrationBuilder.AlterColumn( name: "ElapsedMilliseconds", table: "QueueLog", type: "bigint", nullable: false, oldClrType: typeof(long), oldType: "bigint", oldComment: "耗时毫秒数"); migrationBuilder.AlterColumn( name: "Data", table: "QueueLog", type: "nvarchar(max)", nullable: false, oldClrType: typeof(string), oldType: "nvarchar(max)", oldComment: "数据"); migrationBuilder.AlterColumn( name: "CreatedUserInfoId", table: "QueueLog", type: "uniqueidentifier", nullable: true, oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true, oldComment: "创建操作人"); migrationBuilder.AlterColumn( name: "Access", table: "QueueLog", type: "int", nullable: false, oldClrType: typeof(int), oldType: "int", oldComment: "通道"); migrationBuilder.AlterColumn( name: "UpdateUserInfoId", table: "ExceptionLog", type: "uniqueidentifier", nullable: true, oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true, oldComment: "最后更新操作人"); migrationBuilder.AlterColumn( name: "Type", table: "ExceptionLog", type: "nvarchar(256)", maxLength: 256, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(256)", oldMaxLength: 256, oldNullable: true, oldComment: "类型"); migrationBuilder.AlterColumn( name: "TraceId", table: "ExceptionLog", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true, oldComment: "跟踪Id"); migrationBuilder.AlterColumn( name: "StackTrace", table: "ExceptionLog", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true, oldComment: "堆栈跟踪"); migrationBuilder.AlterColumn( name: "Sort", table: "ExceptionLog", type: "int", nullable: false, oldClrType: typeof(int), oldType: "int", oldComment: "排序"); migrationBuilder.AlterColumn( name: "Message", table: "ExceptionLog", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true, oldComment: "消息"); migrationBuilder.AlterColumn( name: "IsDeleted", table: "ExceptionLog", type: "bit", nullable: false, oldClrType: typeof(bool), oldType: "bit", oldComment: "是否删除"); migrationBuilder.AlterColumn( name: "CreatedUserInfoId", table: "ExceptionLog", type: "uniqueidentifier", nullable: true, oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true, oldComment: "创建操作人"); migrationBuilder.AlterColumn( name: "Code", table: "ExceptionLog", type: "nvarchar(32)", maxLength: 32, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(32)", oldMaxLength: 32, oldNullable: true, oldComment: "代码"); migrationBuilder.AlterColumn( name: "UpdateUserInfoId", table: "DbAuditLog", type: "uniqueidentifier", nullable: true, oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true, oldComment: "最后更新操作人"); migrationBuilder.AlterColumn( name: "TraceId", table: "DbAuditLog", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true, oldComment: "跟踪Id"); migrationBuilder.AlterColumn( name: "TableName", table: "DbAuditLog", type: "nvarchar(128)", maxLength: 128, nullable: false, oldClrType: typeof(string), oldType: "nvarchar(128)", oldMaxLength: 128, oldComment: "表名"); migrationBuilder.AlterColumn( name: "Sort", table: "DbAuditLog", type: "int", nullable: false, oldClrType: typeof(int), oldType: "int", oldComment: "排序"); migrationBuilder.AlterColumn( name: "PrimaryKey", table: "DbAuditLog", type: "uniqueidentifier", nullable: false, oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldComment: "主键"); migrationBuilder.AlterColumn( name: "Operate", table: "DbAuditLog", type: "int", nullable: false, oldClrType: typeof(int), oldType: "int", oldComment: "操作"); migrationBuilder.AlterColumn( name: "OldValues", table: "DbAuditLog", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true, oldComment: "旧值"); migrationBuilder.AlterColumn( name: "NewValues", table: "DbAuditLog", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true, oldComment: "新值"); migrationBuilder.AlterColumn( name: "IsDeleted", table: "DbAuditLog", type: "bit", nullable: false, oldClrType: typeof(bool), oldType: "bit", oldComment: "是否删除"); migrationBuilder.AlterColumn( name: "CreatedUserInfoId", table: "DbAuditLog", type: "uniqueidentifier", nullable: true, oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true, oldComment: "创建操作人"); migrationBuilder.AlterColumn( name: "Url", table: "ConsoleLog", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true, oldComment: "链接地址"); migrationBuilder.AlterColumn( name: "UpdateUserInfoId", table: "ConsoleLog", type: "uniqueidentifier", nullable: true, oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true, oldComment: "最后更新操作人"); migrationBuilder.AlterColumn( name: "TraceId", table: "ConsoleLog", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true, oldComment: "跟踪Id"); migrationBuilder.AlterColumn( name: "StackTrace", table: "ConsoleLog", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true, oldComment: "堆栈跟踪"); migrationBuilder.AlterColumn( name: "Sort", table: "ConsoleLog", type: "int", nullable: false, oldClrType: typeof(int), oldType: "int", oldComment: "排序"); migrationBuilder.AlterColumn( name: "Level", table: "ConsoleLog", type: "int", nullable: false, oldClrType: typeof(int), oldType: "int", oldComment: "级别"); migrationBuilder.AlterColumn( name: "IsDeleted", table: "ConsoleLog", type: "bit", nullable: false, oldClrType: typeof(bool), oldType: "bit", oldComment: "是否删除"); migrationBuilder.AlterColumn( name: "CreatedUserInfoId", table: "ConsoleLog", type: "uniqueidentifier", nullable: true, oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true, oldComment: "创建操作人"); migrationBuilder.AlterColumn( name: "Content", table: "ConsoleLog", type: "nvarchar(max)", nullable: false, oldClrType: typeof(string), oldType: "nvarchar(max)", oldComment: "内容"); migrationBuilder.AlterColumn( name: "ClientIpAddress", table: "ConsoleLog", type: "nvarchar(32)", maxLength: 32, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(32)", oldMaxLength: 32, oldNullable: true, oldComment: "客户IP地址"); migrationBuilder.AlterColumn( name: "Access", table: "ConsoleLog", type: "int", nullable: false, oldClrType: typeof(int), oldType: "int", oldComment: "通道"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Domain", table: "ResourceLog"); migrationBuilder.DropColumn( name: "Path", table: "ResourceLog"); migrationBuilder.DropColumn( name: "RefererUrl", table: "ResourceLog"); migrationBuilder.DropColumn( name: "RequestHeaders", table: "ResourceLog"); migrationBuilder.RenameColumn( name: "ResponseHeaders", table: "ResourceLog", newName: "Headers"); migrationBuilder.RenameColumn( name: "Response", table: "ResourceLog", newName: "Callback"); migrationBuilder.AlterTable( name: "SmsLog", comment: "短信日志"); migrationBuilder.AlterTable( name: "QueueLog", comment: "消息队列日志"); migrationBuilder.AlterTable( name: "ExceptionLog", comment: "异常日志"); migrationBuilder.AlterTable( name: "DbAuditLog", comment: "数据库审计日志"); migrationBuilder.AlterTable( name: "ConsoleLog", comment: "控制台日志"); migrationBuilder.AlterColumn( name: "UpdateUserInfoId", table: "SmsLog", type: "uniqueidentifier", nullable: true, comment: "最后更新操作人", oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true); migrationBuilder.AlterColumn( name: "TraceId", table: "SmsLog", type: "nvarchar(max)", nullable: true, comment: "跟踪Id", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "TemplateParam", table: "SmsLog", type: "nvarchar(max)", nullable: true, comment: "模板参数", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "TemplateCode", table: "SmsLog", type: "nvarchar(128)", maxLength: 128, nullable: false, comment: "模板代码", oldClrType: typeof(string), oldType: "nvarchar(128)", oldMaxLength: 128); migrationBuilder.AlterColumn( name: "Sort", table: "SmsLog", type: "int", nullable: false, comment: "排序", oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "PhoneNumber", table: "SmsLog", type: "nvarchar(11)", maxLength: 11, nullable: false, comment: "手机号码", oldClrType: typeof(string), oldType: "nvarchar(11)", oldMaxLength: 11); migrationBuilder.AlterColumn( name: "IsUsed", table: "SmsLog", type: "bit", nullable: false, comment: "是否使用", oldClrType: typeof(bool), oldType: "bit"); migrationBuilder.AlterColumn( name: "IsDeleted", table: "SmsLog", type: "bit", nullable: false, comment: "是否删除", oldClrType: typeof(bool), oldType: "bit"); migrationBuilder.AlterColumn( name: "Expiry", table: "SmsLog", type: "datetime2", nullable: true, comment: "有效期", oldClrType: typeof(DateTime), oldType: "datetime2", oldNullable: true); migrationBuilder.AlterColumn( name: "CreatedUserInfoId", table: "SmsLog", type: "uniqueidentifier", nullable: true, comment: "创建操作人", oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true); migrationBuilder.AlterColumn( name: "Access", table: "SmsLog", type: "int", nullable: false, comment: "通道", oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "UpdateUserInfoId", table: "ResourceLog", type: "uniqueidentifier", nullable: true, comment: "最后更新操作人", oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true); migrationBuilder.AlterColumn( name: "TraceId", table: "ResourceLog", type: "nvarchar(max)", nullable: true, comment: "跟踪Id", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Sort", table: "ResourceLog", type: "int", nullable: false, comment: "排序", oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "Method", table: "ResourceLog", type: "nvarchar(6)", maxLength: 6, nullable: false, oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "IsDeleted", table: "ResourceLog", type: "bit", nullable: false, comment: "是否删除", oldClrType: typeof(bool), oldType: "bit"); migrationBuilder.AlterColumn( name: "CreatedUserInfoId", table: "ResourceLog", type: "uniqueidentifier", nullable: true, comment: "创建操作人", oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true); migrationBuilder.AddColumn( name: "Url", table: "ResourceLog", type: "nvarchar(max)", nullable: false, defaultValue: ""); migrationBuilder.AlterColumn( name: "UpdateUserInfoId", table: "QueueLog", type: "uniqueidentifier", nullable: true, comment: "最后更新操作人", oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true); migrationBuilder.AlterColumn( name: "TraceId", table: "QueueLog", type: "nvarchar(max)", nullable: true, comment: "跟踪Id", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Sort", table: "QueueLog", type: "int", nullable: false, comment: "排序", oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "IsDeleted", table: "QueueLog", type: "bit", nullable: false, comment: "是否删除", oldClrType: typeof(bool), oldType: "bit"); migrationBuilder.AlterColumn( name: "IsConsumOnce", table: "QueueLog", type: "bit", nullable: false, comment: "消息是否只消费一次", oldClrType: typeof(bool), oldType: "bit"); migrationBuilder.AlterColumn( name: "EventId", table: "QueueLog", type: "nvarchar(128)", maxLength: 128, nullable: false, comment: "事件Id", oldClrType: typeof(string), oldType: "nvarchar(128)", oldMaxLength: 128); migrationBuilder.AlterColumn( name: "ElapsedMilliseconds", table: "QueueLog", type: "bigint", nullable: false, comment: "耗时毫秒数", oldClrType: typeof(long), oldType: "bigint"); migrationBuilder.AlterColumn( name: "Data", table: "QueueLog", type: "nvarchar(max)", nullable: false, comment: "数据", oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "CreatedUserInfoId", table: "QueueLog", type: "uniqueidentifier", nullable: true, comment: "创建操作人", oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true); migrationBuilder.AlterColumn( name: "Access", table: "QueueLog", type: "int", nullable: false, comment: "通道", oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "UpdateUserInfoId", table: "ExceptionLog", type: "uniqueidentifier", nullable: true, comment: "最后更新操作人", oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true); migrationBuilder.AlterColumn( name: "Type", table: "ExceptionLog", type: "nvarchar(256)", maxLength: 256, nullable: true, comment: "类型", oldClrType: typeof(string), oldType: "nvarchar(256)", oldMaxLength: 256, oldNullable: true); migrationBuilder.AlterColumn( name: "TraceId", table: "ExceptionLog", type: "nvarchar(max)", nullable: true, comment: "跟踪Id", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "StackTrace", table: "ExceptionLog", type: "nvarchar(max)", nullable: true, comment: "堆栈跟踪", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Sort", table: "ExceptionLog", type: "int", nullable: false, comment: "排序", oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "Message", table: "ExceptionLog", type: "nvarchar(max)", nullable: true, comment: "消息", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "IsDeleted", table: "ExceptionLog", type: "bit", nullable: false, comment: "是否删除", oldClrType: typeof(bool), oldType: "bit"); migrationBuilder.AlterColumn( name: "CreatedUserInfoId", table: "ExceptionLog", type: "uniqueidentifier", nullable: true, comment: "创建操作人", oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true); migrationBuilder.AlterColumn( name: "Code", table: "ExceptionLog", type: "nvarchar(32)", maxLength: 32, nullable: true, comment: "代码", oldClrType: typeof(string), oldType: "nvarchar(32)", oldMaxLength: 32, oldNullable: true); migrationBuilder.AlterColumn( name: "UpdateUserInfoId", table: "DbAuditLog", type: "uniqueidentifier", nullable: true, comment: "最后更新操作人", oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true); migrationBuilder.AlterColumn( name: "TraceId", table: "DbAuditLog", type: "nvarchar(max)", nullable: true, comment: "跟踪Id", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "TableName", table: "DbAuditLog", type: "nvarchar(128)", maxLength: 128, nullable: false, comment: "表名", oldClrType: typeof(string), oldType: "nvarchar(128)", oldMaxLength: 128); migrationBuilder.AlterColumn( name: "Sort", table: "DbAuditLog", type: "int", nullable: false, comment: "排序", oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "PrimaryKey", table: "DbAuditLog", type: "uniqueidentifier", nullable: false, comment: "主键", oldClrType: typeof(Guid), oldType: "uniqueidentifier"); migrationBuilder.AlterColumn( name: "Operate", table: "DbAuditLog", type: "int", nullable: false, comment: "操作", oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "OldValues", table: "DbAuditLog", type: "nvarchar(max)", nullable: true, comment: "旧值", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "NewValues", table: "DbAuditLog", type: "nvarchar(max)", nullable: true, comment: "新值", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "IsDeleted", table: "DbAuditLog", type: "bit", nullable: false, comment: "是否删除", oldClrType: typeof(bool), oldType: "bit"); migrationBuilder.AlterColumn( name: "CreatedUserInfoId", table: "DbAuditLog", type: "uniqueidentifier", nullable: true, comment: "创建操作人", oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true); migrationBuilder.AlterColumn( name: "Url", table: "ConsoleLog", type: "nvarchar(max)", nullable: true, comment: "链接地址", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "UpdateUserInfoId", table: "ConsoleLog", type: "uniqueidentifier", nullable: true, comment: "最后更新操作人", oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true); migrationBuilder.AlterColumn( name: "TraceId", table: "ConsoleLog", type: "nvarchar(max)", nullable: true, comment: "跟踪Id", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "StackTrace", table: "ConsoleLog", type: "nvarchar(max)", nullable: true, comment: "堆栈跟踪", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AlterColumn( name: "Sort", table: "ConsoleLog", type: "int", nullable: false, comment: "排序", oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "Level", table: "ConsoleLog", type: "int", nullable: false, comment: "级别", oldClrType: typeof(int), oldType: "int"); migrationBuilder.AlterColumn( name: "IsDeleted", table: "ConsoleLog", type: "bit", nullable: false, comment: "是否删除", oldClrType: typeof(bool), oldType: "bit"); migrationBuilder.AlterColumn( name: "CreatedUserInfoId", table: "ConsoleLog", type: "uniqueidentifier", nullable: true, comment: "创建操作人", oldClrType: typeof(Guid), oldType: "uniqueidentifier", oldNullable: true); migrationBuilder.AlterColumn( name: "Content", table: "ConsoleLog", type: "nvarchar(max)", nullable: false, comment: "内容", oldClrType: typeof(string), oldType: "nvarchar(max)"); migrationBuilder.AlterColumn( name: "ClientIpAddress", table: "ConsoleLog", type: "nvarchar(32)", maxLength: 32, nullable: true, comment: "客户IP地址", oldClrType: typeof(string), oldType: "nvarchar(32)", oldMaxLength: 32, oldNullable: true); migrationBuilder.AlterColumn( name: "Access", table: "ConsoleLog", type: "int", nullable: false, comment: "通道", oldClrType: typeof(int), oldType: "int"); } } }