using System; using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace FiscalOS.Infra.Migrations { /// public partial class AddPropsToRefreshToken : Migration { /// protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( 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))); migrationBuilder.AddColumn( name: "Token", table: "RefreshTokens", type: "TEXT", nullable: false, defaultValue: ""); } /// protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "ExpiresAt", table: "RefreshTokens"); migrationBuilder.DropColumn( name: "Token", table: "RefreshTokens"); } } }