48 lines
1.8 KiB
C#
48 lines
1.8 KiB
C#
using System;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Distribution.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class FixSeedStockMovementExternalLocations : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.UpdateData(
|
|
table: "StockMovements",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("62000000-0000-0000-0000-000000000001"),
|
|
columns: new[] { "FromLocationId", "FromLocationType" },
|
|
values: new object[] { new Guid("00000000-0000-0000-0000-000000000000"), 2 });
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "StockMovements",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("62000000-0000-0000-0000-000000000003"),
|
|
columns: new[] { "ToLocationId", "ToLocationType" },
|
|
values: new object[] { new Guid("00000000-0000-0000-0000-000000000000"), 2 });
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.UpdateData(
|
|
table: "StockMovements",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("62000000-0000-0000-0000-000000000001"),
|
|
columns: new[] { "FromLocationId", "FromLocationType" },
|
|
values: new object[] { null, null });
|
|
|
|
migrationBuilder.UpdateData(
|
|
table: "StockMovements",
|
|
keyColumn: "Id",
|
|
keyValue: new Guid("62000000-0000-0000-0000-000000000003"),
|
|
columns: new[] { "ToLocationId", "ToLocationType" },
|
|
values: new object[] { null, null });
|
|
}
|
|
}
|
|
}
|