Files
fiscalos/src/FiscalOS.Infra/Migrations/20260202125635_AddPropsToRefreshToken.cs
T

42 lines
1.1 KiB
C#
Raw Normal View History

2026-02-02 07:00:28 -06:00
using System;
2026-02-02 15:46:12 -06:00
2026-02-02 07:00:28 -06:00
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FiscalOS.Infra.Migrations
{
2026-02-02 15:46:12 -06:00
/// <inheritdoc />
public partial class AddPropsToRefreshToken : Migration
{
2026-02-02 07:00:28 -06:00
/// <inheritdoc />
2026-02-02 15:46:12 -06:00
protected override void Up(MigrationBuilder migrationBuilder)
2026-02-02 07:00:28 -06:00
{
2026-02-02 15:46:12 -06:00
migrationBuilder.AddColumn<DateTimeOffset>(
name: "ExpiresAt",
table: "RefreshTokens",
type: "TEXT",
nullable: false,
defaultValue: new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)));
2026-02-02 07:00:28 -06:00
2026-02-02 15:46:12 -06:00
migrationBuilder.AddColumn<string>(
name: "Token",
table: "RefreshTokens",
type: "TEXT",
nullable: false,
defaultValue: "");
2026-02-02 07:00:28 -06:00
}
2026-02-02 15:46:12 -06:00
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ExpiresAt",
table: "RefreshTokens");
migrationBuilder.DropColumn(
name: "Token",
table: "RefreshTokens");
}
}
}