InventoryAgent/Inventory.Core/Migrations/20251019074213_AddDeviceLocation.cs

29 lines
754 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Inventory.Core.Migrations
{
/// <inheritdoc />
public partial class AddDeviceLocation : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "PreviousIPAddress",
table: "Devices",
newName: "Location");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "Location",
table: "Devices",
newName: "PreviousIPAddress");
}
}
}