using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace GreadyPoang.DataLayer.Migrations { /// public partial class statusfieldmove : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "PointStatus", table: "GamePoints"); migrationBuilder.AddColumn( name: "GameStatus", table: "GameRounds", type: "INTEGER", nullable: false, defaultValue: 0); migrationBuilder.UpdateData( table: "GameRounds", keyColumn: "GameRoundId", keyValue: 1, column: "GameStatus", value: 0); migrationBuilder.UpdateData( table: "GameRounds", keyColumn: "GameRoundId", keyValue: 2, column: "GameStatus", value: 0); migrationBuilder.UpdateData( table: "GameRounds", keyColumn: "GameRoundId", keyValue: 3, column: "GameStatus", value: 0); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "GameStatus", table: "GameRounds"); migrationBuilder.AddColumn( name: "PointStatus", table: "GamePoints", type: "INTEGER", nullable: false, defaultValue: 0); migrationBuilder.UpdateData( table: "GamePoints", keyColumn: "GamePointId", keyValue: 1, column: "PointStatus", value: 0); migrationBuilder.UpdateData( table: "GamePoints", keyColumn: "GamePointId", keyValue: 2, column: "PointStatus", value: 0); migrationBuilder.UpdateData( table: "GamePoints", keyColumn: "GamePointId", keyValue: 3, column: "PointStatus", value: 0); migrationBuilder.UpdateData( table: "GamePoints", keyColumn: "GamePointId", keyValue: 4, column: "PointStatus", value: 0); } } }