added weight field

This commit is contained in:
2025-05-04 14:35:12 -05:00
parent e6c93f4fe7
commit afecdefb8d
5 changed files with 147 additions and 2 deletions
@@ -0,0 +1,28 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace barkmanapi.Migrations
{
/// <inheritdoc />
public partial class addweight : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<float>(
name: "weight",
table: "inventory",
type: "real",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "weight",
table: "inventory");
}
}
}