using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Repository.Migrations { public partial class AddTableParamLog : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.CreateTable( name: "ParamLogs", columns: table => new { Id = table.Column(nullable: false), Occured = table.Column(nullable: false), Content = table.Column(nullable: true), OperateAction = table.Column(nullable: false), OperateObject = table.Column(nullable: true) }, constraints: table => { table.PrimaryKey("PK_ParamLogs", x => x.Id); }); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropTable( name: "ParamLogs"); } } }