FlowAPI / FlowAPI.Infrastructure /Migrations /20260521162648_ChangeEdgeConditionToString.cs
danylokhodus's picture
fix: refactor Edge.Condition to string for precise handle-based connection persistence
452ab3c
Raw
History Blame Contribute Delete
1.1 kB
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FlowAPI.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class ChangeEdgeConditionToString : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "Condition",
table: "Edges",
type: "TEXT",
maxLength: 50,
nullable: false,
oldClrType: typeof(int),
oldType: "INTEGER",
oldMaxLength: 50);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "Condition",
table: "Edges",
type: "INTEGER",
maxLength: 50,
nullable: false,
oldClrType: typeof(string),
oldType: "TEXT",
oldMaxLength: 50);
}
}
}