auto.bus_api/Server/Migrations/20221115135952_Change_Refresh_Token_Property_Names.cs
2022-11-23 19:45:15 +02:00

36 lines
1013 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace Server.Migrations
{
public partial class Change_Refresh_Token_Property_Names : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "Expires",
table: "RefreshToken",
newName: "ExpiryDateTime");
migrationBuilder.RenameColumn(
name: "Created",
table: "RefreshToken",
newName: "CreationDateTime");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "ExpiryDateTime",
table: "RefreshToken",
newName: "Expires");
migrationBuilder.RenameColumn(
name: "CreationDateTime",
table: "RefreshToken",
newName: "Created");
}
}
}