12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- using System;
- using Microsoft.EntityFrameworkCore.Migrations;
- namespace WCS.Service.Migrations
- {
- public partial class _7241 : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.AlterColumn<string>(
- name: "TUNNEL",
- table: "WCS_TASK",
- type: "nvarchar(10)",
- maxLength: 10,
- nullable: true,
- oldClrType: typeof(int),
- oldType: "int");
- migrationBuilder.CreateTable(
- name: "WCS_AGVTask",
- columns: table => new
- {
- ID = table.Column<int>(type: "int", nullable: false)
- .Annotation("SqlServer:Identity", "1, 1"),
- TaskType = table.Column<int>(type: "int", nullable: false),
- Status = table.Column<int>(type: "int", nullable: false),
- AGVStatus = table.Column<int>(type: "int", nullable: false),
- Workshop = table.Column<int>(type: "int", nullable: false),
- Station = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: true),
- Position = table.Column<string>(type: "nvarchar(20)", maxLength: 20, nullable: false),
- CreateTime = table.Column<DateTime>(type: "datetime2", nullable: false),
- UpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
- AGVUpdateTime = table.Column<DateTime>(type: "datetime2", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_WCS_AGVTask", x => x.ID);
- });
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "WCS_AGVTask");
- migrationBuilder.AlterColumn<int>(
- name: "TUNNEL",
- table: "WCS_TASK",
- type: "int",
- nullable: false,
- defaultValue: 0,
- oldClrType: typeof(string),
- oldType: "nvarchar(10)",
- oldMaxLength: 10,
- oldNullable: true);
- }
- }
- }
|