1234567891011121314151617181920212223242526272829303132 |
- 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<Guid>(nullable: false),
- Occured = table.Column<DateTime>(nullable: false),
- Content = table.Column<string>(nullable: true),
- OperateAction = table.Column<int>(nullable: false),
- OperateObject = table.Column<string>(nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_ParamLogs", x => x.Id);
- });
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "ParamLogs");
- }
- }
- }
|