using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace Distribution.Migrations { /// public partial class AddGrnFreeQuantity : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "FreeQuantity", table: "GoodsReceiptItems", type: "int", nullable: false, defaultValue: 0); migrationBuilder.UpdateData( table: "GoodsReceiptItems", keyColumn: "Id", keyValue: new Guid("44000000-0000-0000-0000-000000000001"), column: "FreeQuantity", value: 0); migrationBuilder.UpdateData( table: "GoodsReceiptItems", keyColumn: "Id", keyValue: new Guid("44000000-0000-0000-0000-000000000002"), column: "FreeQuantity", value: 0); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "FreeQuantity", table: "GoodsReceiptItems"); } } }