update 修改日志表字段类型

This commit is contained in:
2021-04-25 20:43:51 +08:00
parent 2547f33867
commit 447f74fdbf
7 changed files with 6832 additions and 8 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,56 @@
using Microsoft.EntityFrameworkCore.Migrations;
namespace Ewide.Database.Migrations.Migrations
{
public partial class Init20210425a : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<bool>(
name: "Success",
table: "sys_log_vis",
type: "tinyint(1)",
nullable: false,
defaultValue: false,
comment: "是否执行成功",
oldClrType: typeof(string),
oldType: "longtext CHARACTER SET utf8mb4",
oldNullable: true,
oldComment: "是否执行成功");
migrationBuilder.CreateTable(
name: "ewide_area_number",
columns: table => new
{
Code = table.Column<string>(type: "varchar(10) CHARACTER SET utf8mb4", maxLength: 10, nullable: false, comment: "系统使用的区域代码"),
ShowCode = table.Column<string>(type: "varchar(10) CHARACTER SET utf8mb4", maxLength: 10, nullable: true, comment: "对外使用的区域代码"),
Name = table.Column<string>(type: "varchar(10) CHARACTER SET utf8mb4", maxLength: 10, nullable: false, comment: "名称"),
Note = table.Column<string>(type: "longtext CHARACTER SET utf8mb4", nullable: true, comment: "备注"),
LevelType = table.Column<int>(type: "int", nullable: false, comment: "类别"),
ParentCode = table.Column<string>(type: "varchar(10) CHARACTER SET utf8mb4", maxLength: 10, nullable: true, comment: "父级区域代码"),
Sort = table.Column<int>(type: "int", nullable: false, comment: "排序")
},
constraints: table =>
{
table.PrimaryKey("PK_ewide_area_number", x => x.Code);
},
comment: "区域表");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "ewide_area_number");
migrationBuilder.AlterColumn<string>(
name: "Success",
table: "sys_log_vis",
type: "longtext CHARACTER SET utf8mb4",
nullable: true,
comment: "是否执行成功",
oldClrType: typeof(bool),
oldType: "tinyint(1)",
oldComment: "是否执行成功");
}
}
}

View File

@@ -81,6 +81,49 @@ namespace Ewide.Database.Migrations.Migrations
.HasComment("代码生成业务");
});
modelBuilder.Entity("Ewide.Core.Entity.AreaNumber", b =>
{
b.Property<string>("Code")
.HasMaxLength(10)
.HasColumnType("varchar(10) CHARACTER SET utf8mb4")
.HasComment("系统使用的区域代码");
b.Property<int>("LevelType")
.HasColumnType("int")
.HasComment("类别");
b.Property<string>("Name")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("varchar(10) CHARACTER SET utf8mb4")
.HasComment("名称");
b.Property<string>("Note")
.HasColumnType("longtext CHARACTER SET utf8mb4")
.HasComment("备注");
b.Property<string>("ParentCode")
.HasMaxLength(10)
.HasColumnType("varchar(10) CHARACTER SET utf8mb4")
.HasComment("父级区域代码");
b.Property<string>("ShowCode")
.HasMaxLength(10)
.HasColumnType("varchar(10) CHARACTER SET utf8mb4")
.HasComment("对外使用的区域代码");
b.Property<int>("Sort")
.HasColumnType("int")
.HasComment("排序");
b.HasKey("Code");
b.ToTable("ewide_area_number");
b
.HasComment("区域表");
});
modelBuilder.Entity("Ewide.Core.SysApp", b =>
{
b.Property<string>("Id")
@@ -2688,8 +2731,8 @@ namespace Ewide.Database.Migrations.Migrations
.HasColumnType("longtext CHARACTER SET utf8mb4")
.HasComment("操作系统");
b.Property<string>("Success")
.HasColumnType("longtext CHARACTER SET utf8mb4")
b.Property<bool>("Success")
.HasColumnType("tinyint(1)")
.HasComment("是否执行成功");
b.Property<DateTimeOffset>("VisTime")