chore: run dotnet format
This commit is contained in:
@@ -1,41 +1,42 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
using Microsoft.EntityFrameworkCore.Migrations;
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
#nullable disable
|
#nullable disable
|
||||||
|
|
||||||
namespace FiscalOS.Infra.Migrations
|
namespace FiscalOS.Infra.Migrations
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class AddPropsToRefreshToken : Migration
|
||||||
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public partial class AddPropsToRefreshToken : Migration
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
name: "ExpiresAt",
|
||||||
{
|
table: "RefreshTokens",
|
||||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
type: "TEXT",
|
||||||
name: "ExpiresAt",
|
nullable: false,
|
||||||
table: "RefreshTokens",
|
defaultValue: new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)));
|
||||||
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<string>(
|
migrationBuilder.AddColumn<string>(
|
||||||
name: "Token",
|
name: "Token",
|
||||||
table: "RefreshTokens",
|
table: "RefreshTokens",
|
||||||
type: "TEXT",
|
type: "TEXT",
|
||||||
nullable: false,
|
nullable: false,
|
||||||
defaultValue: "");
|
defaultValue: "");
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "ExpiresAt",
|
|
||||||
table: "RefreshTokens");
|
|
||||||
|
|
||||||
migrationBuilder.DropColumn(
|
|
||||||
name: "Token",
|
|
||||||
table: "RefreshTokens");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "ExpiresAt",
|
||||||
|
table: "RefreshTokens");
|
||||||
|
|
||||||
|
migrationBuilder.DropColumn(
|
||||||
|
name: "Token",
|
||||||
|
table: "RefreshTokens");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -4,35 +4,35 @@
|
|||||||
|
|
||||||
namespace FiscalOS.Infra.Migrations
|
namespace FiscalOS.Infra.Migrations
|
||||||
{
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class AddIndexesWithUniquenessToModels : Migration
|
||||||
|
{
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public partial class AddIndexesWithUniquenessToModels : Migration
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
{
|
{
|
||||||
/// <inheritdoc />
|
migrationBuilder.CreateIndex(
|
||||||
protected override void Up(MigrationBuilder migrationBuilder)
|
name: "IX_Users_Username",
|
||||||
{
|
table: "Users",
|
||||||
migrationBuilder.CreateIndex(
|
column: "Username",
|
||||||
name: "IX_Users_Username",
|
unique: true);
|
||||||
table: "Users",
|
|
||||||
column: "Username",
|
|
||||||
unique: true);
|
|
||||||
|
|
||||||
migrationBuilder.CreateIndex(
|
migrationBuilder.CreateIndex(
|
||||||
name: "IX_RefreshTokens_Token",
|
name: "IX_RefreshTokens_Token",
|
||||||
table: "RefreshTokens",
|
table: "RefreshTokens",
|
||||||
column: "Token",
|
column: "Token",
|
||||||
unique: true);
|
unique: true);
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
|
||||||
protected override void Down(MigrationBuilder migrationBuilder)
|
|
||||||
{
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_Users_Username",
|
|
||||||
table: "Users");
|
|
||||||
|
|
||||||
migrationBuilder.DropIndex(
|
|
||||||
name: "IX_RefreshTokens_Token",
|
|
||||||
table: "RefreshTokens");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.DropIndex(
|
||||||
|
name: "IX_Users_Username",
|
||||||
|
table: "Users");
|
||||||
|
|
||||||
|
migrationBuilder.DropIndex(
|
||||||
|
name: "IX_RefreshTokens_Token",
|
||||||
|
table: "RefreshTokens");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user