Spaces:
Running
Running
Download FlowAPI.Infrastructure/Migrations/20260521020134_AddTaskNodeVisualFields.cs from DanilDrotik/FlowAPI: direct link, hf CLI and curl.
- Browser
- Download file 2.24 kB
-
https://huggingface.co/spaces/DanilDrotik/FlowAPI/resolve/d8ea1e09beb0ef2cedc523cc8585fea6cc52c013/FlowAPI.Infrastructure/Migrations/20260521020134_AddTaskNodeVisualFields.cs
- Command line
-
hf download hf://spaces/DanilDrotik/FlowAPI@d8ea1e09beb0ef2cedc523cc8585fea6cc52c013/FlowAPI.Infrastructure/Migrations/20260521020134_AddTaskNodeVisualFields.cs
-
curl -L -o 20260521020134_AddTaskNodeVisualFields.cs https://huggingface.co/spaces/DanilDrotik/FlowAPI/resolve/d8ea1e09beb0ef2cedc523cc8585fea6cc52c013/FlowAPI.Infrastructure/Migrations/20260521020134_AddTaskNodeVisualFields.cs
2.24 kB
| using Microsoft.EntityFrameworkCore.Migrations; | |
| namespace FlowAPI.Infrastructure.Migrations | |
| { | |
| /// <inheritdoc /> | |
| public partial class AddTaskNodeVisualFields : Migration | |
| { | |
| /// <inheritdoc /> | |
| protected override void Up(MigrationBuilder migrationBuilder) | |
| { | |
| migrationBuilder.AddColumn<string>( | |
| name: "Color", | |
| table: "TaskNodes", | |
| type: "TEXT", | |
| nullable: true); | |
| migrationBuilder.AddColumn<string>( | |
| name: "Data", | |
| table: "TaskNodes", | |
| type: "TEXT", | |
| nullable: true); | |
| migrationBuilder.AddColumn<string>( | |
| name: "Description", | |
| table: "TaskNodes", | |
| type: "TEXT", | |
| nullable: true); | |
| migrationBuilder.AddColumn<double>( | |
| name: "Height", | |
| table: "TaskNodes", | |
| type: "REAL", | |
| nullable: true); | |
| migrationBuilder.AddColumn<bool>( | |
| name: "IsPinned", | |
| table: "TaskNodes", | |
| type: "INTEGER", | |
| nullable: false, | |
| defaultValue: false); | |
| migrationBuilder.AddColumn<double>( | |
| name: "Width", | |
| table: "TaskNodes", | |
| type: "REAL", | |
| nullable: true); | |
| } | |
| /// <inheritdoc /> | |
| protected override void Down(MigrationBuilder migrationBuilder) | |
| { | |
| migrationBuilder.DropColumn( | |
| name: "Color", | |
| table: "TaskNodes"); | |
| migrationBuilder.DropColumn( | |
| name: "Data", | |
| table: "TaskNodes"); | |
| migrationBuilder.DropColumn( | |
| name: "Description", | |
| table: "TaskNodes"); | |
| migrationBuilder.DropColumn( | |
| name: "Height", | |
| table: "TaskNodes"); | |
| migrationBuilder.DropColumn( | |
| name: "IsPinned", | |
| table: "TaskNodes"); | |
| migrationBuilder.DropColumn( | |
| name: "Width", | |
| table: "TaskNodes"); | |
| } | |
| } | |
| } | |