RobotNet/RobotNet.MapManager/Data/Migrations/20250812041834_AddZoneName.cs
2025-10-15 15:15:53 +07:00

30 lines
762 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RobotNet.MapManager.Data.Migrations
{
/// <inheritdoc />
public partial class AddZoneName : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Name",
table: "Zones",
type: "nvarchar(64)",
nullable: false,
defaultValue: "");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Name",
table: "Zones");
}
}
}