39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace DD.Persistence.Database.Postgres.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class IdDiscriminatorUpdateToDiscriminatorId : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.RenameColumn(
|
|
name: "Key",
|
|
table: "setpoint",
|
|
newName: "DiscriminatorId");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "IdDiscriminator",
|
|
table: "change_log",
|
|
newName: "DiscriminatorId");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.RenameColumn(
|
|
name: "DiscriminatorId",
|
|
table: "setpoint",
|
|
newName: "Key");
|
|
|
|
migrationBuilder.RenameColumn(
|
|
name: "DiscriminatorId",
|
|
table: "change_log",
|
|
newName: "IdDiscriminator");
|
|
}
|
|
}
|
|
}
|