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( name: "HEIGHT", table: "WCS_TASK", type: "smallint", nullable: false, defaultValue: (short)0); migrationBuilder.AddColumn( name: "HEIGHT", table: "WCS_STATION520", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( 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"); } } }