Spaces:
Running
Running
| using Microsoft.EntityFrameworkCore.Migrations; | |
| 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); | |
| } | |
| } | |
| } | |