mirror of
https://github.com/BarkProductions/barkman.git
synced 2026-06-13 06:11:55 +00:00
29 lines
714 B
C#
29 lines
714 B
C#
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");
|
|
}
|
|
}
|
|
}
|