Files
BimAI/BimAI.Infrastructure/Migrations/20250624193445_Products-NewFields.cs
Michał Zieliński 6d2c46d971
Some checks failed
Build Bimix / Build WebAPI and WebUI (push) Failing after 12s
App name refactor
2025-10-11 11:33:46 +02:00

55 lines
1.5 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BimAI.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class ProductsNewFields : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Code",
table: "Products",
type: "nvarchar(40)",
maxLength: 40,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "Ean",
table: "Products",
type: "nvarchar(50)",
maxLength: 50,
nullable: false,
defaultValue: "");
migrationBuilder.AddColumn<string>(
name: "StockAddresses",
table: "Products",
type: "nvarchar(512)",
maxLength: 512,
nullable: false,
defaultValue: "");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Code",
table: "Products");
migrationBuilder.DropColumn(
name: "Ean",
table: "Products");
migrationBuilder.DropColumn(
name: "StockAddresses",
table: "Products");
}
}
}