using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace CartriX.Api.Migrations { /// public partial class ChangePrinterAgain : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "hostname", table: "Printers"); migrationBuilder.RenameColumn( name: "ipAddress", table: "Printers", newName: "ipAddressOrHostname"); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.RenameColumn( name: "ipAddressOrHostname", table: "Printers", newName: "ipAddress"); migrationBuilder.AddColumn( name: "hostname", table: "Printers", type: "TEXT", nullable: true); } } }