Files
BimAI/BimAI.Infrastructure/Migrations/20250623194653_ResizeProductName.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

39 lines
1.1 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BimAI.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class ResizeProductName : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Name",
table: "Products",
type: "nvarchar(512)",
maxLength: 512,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(200)",
oldMaxLength: 200);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Name",
table: "Products",
type: "nvarchar(200)",
maxLength: 200,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(512)",
oldMaxLength: 512);
}
}
}