Spaces:
Running
Running
| 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"); | |
| } | |
| } | |
| } | |