temperature-alarm/backend/Api/Migrations/20250318112004_init2.cs
2025-03-18 12:45:31 +01:00

39 lines
990 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Api.Migrations
{
/// <inheritdoc />
public partial class init2 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "FullName",
table: "Users",
newName: "Email");
migrationBuilder.AddColumn<string>(
name: "UnikId",
table: "Devices",
type: "TEXT",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "UnikId",
table: "Devices");
migrationBuilder.RenameColumn(
name: "Email",
table: "Users",
newName: "FullName");
}
}
}