Add item reorder level migration

This commit is contained in:
2026-09-29 12:32:22 +05:30
parent bd90a3d68e
commit ef4e0e0873
5 changed files with 4146 additions and 3 deletions
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,57 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Distribution.Migrations
{
/// <inheritdoc />
public partial class AddItemReorderLevel : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<decimal>(
name: "ReorderLevel",
table: "Items",
type: "decimal(65,30)",
nullable: true);
migrationBuilder.UpdateData(
table: "Items",
keyColumn: "Id",
keyValue: new Guid("23000000-0000-0000-0000-000000000001"),
column: "ReorderLevel",
value: null);
migrationBuilder.UpdateData(
table: "Items",
keyColumn: "Id",
keyValue: new Guid("23000000-0000-0000-0000-000000000002"),
column: "ReorderLevel",
value: null);
migrationBuilder.UpdateData(
table: "Items",
keyColumn: "Id",
keyValue: new Guid("23000000-0000-0000-0000-000000000003"),
column: "ReorderLevel",
value: null);
migrationBuilder.UpdateData(
table: "Items",
keyColumn: "Id",
keyValue: new Guid("23000000-0000-0000-0000-000000000004"),
column: "ReorderLevel",
value: null);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ReorderLevel",
table: "Items");
}
}
}
@@ -634,6 +634,10 @@ namespace Distribution.Migrations
.IsRequired()
.HasColumnType("longtext");
b.Property<decimal?>("ReorderLevel")
.HasColumnType("decimal(65,30)");
b.Property<decimal?>("SalePrice")
.HasColumnType("decimal(65,30)");