1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using Microsoft.EntityFrameworkCore.Migrations;
- namespace WCS.Service.Migrations
- {
- public partial class _7281 : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.RenameColumn(
- name: "WEIGHT",
- table: "WCS_STATION521",
- newName: "HEIGHT");
- migrationBuilder.AddColumn<short>(
- name: "HEIGHT",
- table: "WCS_TASK",
- type: "smallint",
- nullable: false,
- defaultValue: (short)0);
- migrationBuilder.AddColumn<int>(
- name: "HEIGHT",
- table: "WCS_STATION520",
- type: "int",
- nullable: false,
- defaultValue: 0);
- migrationBuilder.AddColumn<byte>(
- name: "RES2",
- table: "WCS_STATION520",
- type: "tinyint",
- nullable: false,
- defaultValue: (byte)0);
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "HEIGHT",
- table: "WCS_TASK");
- migrationBuilder.DropColumn(
- name: "HEIGHT",
- table: "WCS_STATION520");
- migrationBuilder.DropColumn(
- name: "RES2",
- table: "WCS_STATION520");
- migrationBuilder.RenameColumn(
- name: "HEIGHT",
- table: "WCS_STATION521",
- newName: "WEIGHT");
- }
- }
- }
|