using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace LANCommander.Migrations { /// public partial class AddDockerContainerFields : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "ContainerId", table: "Servers", type: "TEXT", maxLength: 64, nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "DockerHostId", table: "Servers", type: "TEXT", nullable: true); migrationBuilder.AddColumn( name: "Engine", table: "Servers", type: "INTEGER", nullable: false, defaultValue: 0); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "ContainerId", table: "Servers"); migrationBuilder.DropColumn( name: "DockerHostId", table: "Servers"); migrationBuilder.DropColumn( name: "Engine", table: "Servers"); } } }