45 lines
1.3 KiB
C#
45 lines
1.3 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Distribution.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AddGrnFreeQuantity : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
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);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "FreeQuantity",
|
|
table: "GoodsReceiptItems");
|
|
}
|
|
}
|
|
}
|