Spaces:
Running
Running
Download FlowAPI.Infrastructure/Migrations/20260521162648_ChangeEdgeConditionToString.cs from DanilDrotik/FlowAPI: direct link, hf CLI and curl.
- Browser
- Download file 1.1 kB
-
https://huggingface.co/spaces/DanilDrotik/FlowAPI/resolve/c8301b4e0f289c0e69fa026bb49f7828aec1850d/FlowAPI.Infrastructure/Migrations/20260521162648_ChangeEdgeConditionToString.cs
- Command line
-
hf download hf://spaces/DanilDrotik/FlowAPI@c8301b4e0f289c0e69fa026bb49f7828aec1850d/FlowAPI.Infrastructure/Migrations/20260521162648_ChangeEdgeConditionToString.cs
-
curl -L -o 20260521162648_ChangeEdgeConditionToString.cs https://huggingface.co/spaces/DanilDrotik/FlowAPI/resolve/c8301b4e0f289c0e69fa026bb49f7828aec1850d/FlowAPI.Infrastructure/Migrations/20260521162648_ChangeEdgeConditionToString.cs
1.1 kB
| 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); | |
| } | |
| } | |
| } | |