using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace LittleShop.Migrations { /// public partial class AddBotDiscoveryStatus : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "DiscoveryStatus", table: "Bots", type: "TEXT", maxLength: 50, nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "LastDiscoveryAt", table: "Bots", type: "TEXT", nullable: true); migrationBuilder.AddColumn( name: "RemoteAddress", table: "Bots", type: "TEXT", maxLength: 255, nullable: true); migrationBuilder.AddColumn( name: "RemoteInstanceId", table: "Bots", type: "TEXT", maxLength: 100, nullable: true); migrationBuilder.AddColumn( name: "RemotePort", table: "Bots", type: "INTEGER", nullable: true); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "DiscoveryStatus", table: "Bots"); migrationBuilder.DropColumn( name: "LastDiscoveryAt", table: "Bots"); migrationBuilder.DropColumn( name: "RemoteAddress", table: "Bots"); migrationBuilder.DropColumn( name: "RemoteInstanceId", table: "Bots"); migrationBuilder.DropColumn( name: "RemotePort", table: "Bots"); } } }