123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- using Microsoft.EntityFrameworkCore.Migrations;
- namespace WCS.Service.Migrations
- {
- public partial class _7111 : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.RenameColumn(
- name: "RES3",
- table: "WCS_STATION521",
- newName: "PH_STATUS2");
- migrationBuilder.AddColumn<int>(
- name: "FLOOR",
- table: "WCS_TASK",
- type: "int",
- nullable: false,
- defaultValue: 0);
- migrationBuilder.AddColumn<short>(
- name: "FULLQTY",
- table: "WCS_TASK",
- type: "smallint",
- nullable: false,
- defaultValue: (short)0);
- migrationBuilder.AddColumn<short>(
- name: "WORKSHOP",
- table: "WCS_TASK",
- type: "smallint",
- nullable: false,
- defaultValue: (short)0);
- migrationBuilder.AlterColumn<string>(
- name: "CONTENT",
- table: "WCS_BCR80",
- type: "nvarchar(200)",
- maxLength: 200,
- nullable: true,
- oldClrType: typeof(string),
- oldType: "nvarchar(20)",
- oldMaxLength: 20,
- oldNullable: true);
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "FLOOR",
- table: "WCS_TASK");
- migrationBuilder.DropColumn(
- name: "FULLQTY",
- table: "WCS_TASK");
- migrationBuilder.DropColumn(
- name: "WORKSHOP",
- table: "WCS_TASK");
- migrationBuilder.RenameColumn(
- name: "PH_STATUS2",
- table: "WCS_STATION521",
- newName: "RES3");
- migrationBuilder.AlterColumn<string>(
- name: "CONTENT",
- table: "WCS_BCR80",
- type: "nvarchar(20)",
- maxLength: 20,
- nullable: true,
- oldClrType: typeof(string),
- oldType: "nvarchar(200)",
- oldMaxLength: 200,
- oldNullable: true);
- }
- }
- }
|