1234567891011121314151617181920212223242526272829303132333435363738 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
- namespace WCS.Service.Migrations
- {
- public partial class 新增系统设置 : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "WCS_SystemConfig",
- columns: table => new
- {
- ID = table.Column<int>(type: "int", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- Code = table.Column<string>(type: "nvarchar(max)", nullable: true),
- Describe = table.Column<string>(type: "nvarchar(max)", nullable: true),
- DEVICECODE = table.Column<string>(type: "nvarchar(max)", nullable: true),
- TUNNEL = table.Column<string>(type: "nvarchar(max)", nullable: true),
- Direction = table.Column<string>(type: "nvarchar(max)", nullable: true),
- ENABLED = table.Column<bool>(type: "bit", nullable: false),
- UPDATEUSER = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
- UPDATETIME = table.Column<DateTime>(type: "datetime2", nullable: false),
- VER = table.Column<byte[]>(type: "rowversion", rowVersion: true, nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_WCS_SystemConfig", x => x.ID);
- });
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "WCS_SystemConfig");
- }
- }
- }
|