1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- using Microsoft.EntityFrameworkCore.Migrations;
- namespace WCS.Service.Migrations
- {
- public partial class _754 : Migration
- {
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "FLAGS",
- table: "WCS_STATION520");
- migrationBuilder.DropColumn(
- name: "WEIGHT",
- table: "WCS_STATION520");
- migrationBuilder.AlterColumn<bool>(
- name: "CONFIRM",
- table: "WCS_STATION520",
- type: "bit",
- nullable: false,
- oldClrType: typeof(short),
- oldType: "smallint");
- migrationBuilder.AddColumn<bool>(
- name: "RES",
- table: "WCS_STATION520",
- type: "bit",
- nullable: false,
- defaultValue: false);
- }
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropColumn(
- name: "RES",
- table: "WCS_STATION520");
- migrationBuilder.AlterColumn<short>(
- name: "CONFIRM",
- table: "WCS_STATION520",
- type: "smallint",
- nullable: false,
- oldClrType: typeof(bool),
- oldType: "bit");
- migrationBuilder.AddColumn<short>(
- name: "FLAGS",
- table: "WCS_STATION520",
- type: "smallint",
- nullable: false,
- defaultValue: (short)0);
- migrationBuilder.AddColumn<short>(
- name: "WEIGHT",
- table: "WCS_STATION520",
- type: "smallint",
- nullable: false,
- defaultValue: (short)0);
- }
- }
- }
|