chore: run dotnet format

This commit is contained in:
Stevan Freeborn
2026-02-02 15:46:12 -06:00
parent fb7750328b
commit eef410d71b
5 changed files with 62 additions and 61 deletions
+1 -1
View File
@@ -49,4 +49,4 @@ internal sealed class App(
{
return Task.CompletedTask;
}
}
}
+1 -1
View File
@@ -12,4 +12,4 @@
services.AddHostedService<App>();
})
.Build()
.StartAsync();
.StartAsync();
+1 -1
View File
@@ -9,4 +9,4 @@ global using Microsoft.Extensions.DependencyInjection;
global using Microsoft.Extensions.Hosting;
global using Microsoft.Extensions.Logging;
global using Spectre.Console;
global using Spectre.Console;
@@ -1,41 +1,42 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace FiscalOS.Infra.Migrations
{
/// <inheritdoc />
public partial class AddPropsToRefreshToken : Migration
{
/// <inheritdoc />
public partial class AddPropsToRefreshToken : Migration
protected override void Up(MigrationBuilder migrationBuilder)
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
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)));
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)));
migrationBuilder.AddColumn<string>(
name: "Token",
table: "RefreshTokens",
type: "TEXT",
nullable: false,
defaultValue: "");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ExpiresAt",
table: "RefreshTokens");
migrationBuilder.DropColumn(
name: "Token",
table: "RefreshTokens");
}
migrationBuilder.AddColumn<string>(
name: "Token",
table: "RefreshTokens",
type: "TEXT",
nullable: false,
defaultValue: "");
}
}
/// <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
{
/// <inheritdoc />
public partial class AddIndexesWithUniquenessToModels : Migration
{
/// <inheritdoc />
public partial class AddIndexesWithUniquenessToModels : Migration
protected override void Up(MigrationBuilder migrationBuilder)
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateIndex(
name: "IX_Users_Username",
table: "Users",
column: "Username",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_Users_Username",
table: "Users",
column: "Username",
unique: true);
migrationBuilder.CreateIndex(
name: "IX_RefreshTokens_Token",
table: "RefreshTokens",
column: "Token",
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");
}
migrationBuilder.CreateIndex(
name: "IX_RefreshTokens_Token",
table: "RefreshTokens",
column: "Token",
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");
}
}
}