From eef410d71b950641d6d6b6cac46cce01e727e81c Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Mon, 2 Feb 2026 15:46:12 -0600 Subject: [PATCH] chore: run dotnet format --- src/FiscalOS.AdminCLI/App.cs | 2 +- src/FiscalOS.AdminCLI/Program.cs | 2 +- src/FiscalOS.AdminCLI/Usings.cs | 2 +- .../20260202125635_AddPropsToRefreshToken.cs | 61 ++++++++++--------- ...214513_AddIndexesWithUniquenessToModels.cs | 56 ++++++++--------- 5 files changed, 62 insertions(+), 61 deletions(-) diff --git a/src/FiscalOS.AdminCLI/App.cs b/src/FiscalOS.AdminCLI/App.cs index 4ebd969..9a53aaf 100644 --- a/src/FiscalOS.AdminCLI/App.cs +++ b/src/FiscalOS.AdminCLI/App.cs @@ -49,4 +49,4 @@ internal sealed class App( { return Task.CompletedTask; } -} +} \ No newline at end of file diff --git a/src/FiscalOS.AdminCLI/Program.cs b/src/FiscalOS.AdminCLI/Program.cs index 4f575c1..397baf9 100644 --- a/src/FiscalOS.AdminCLI/Program.cs +++ b/src/FiscalOS.AdminCLI/Program.cs @@ -12,4 +12,4 @@ services.AddHostedService(); }) .Build() - .StartAsync(); + .StartAsync(); \ No newline at end of file diff --git a/src/FiscalOS.AdminCLI/Usings.cs b/src/FiscalOS.AdminCLI/Usings.cs index 4b1a40b..44bce40 100644 --- a/src/FiscalOS.AdminCLI/Usings.cs +++ b/src/FiscalOS.AdminCLI/Usings.cs @@ -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; \ No newline at end of file diff --git a/src/FiscalOS.Infra/Migrations/20260202125635_AddPropsToRefreshToken.cs b/src/FiscalOS.Infra/Migrations/20260202125635_AddPropsToRefreshToken.cs index e7428b8..47d7ccb 100644 --- a/src/FiscalOS.Infra/Migrations/20260202125635_AddPropsToRefreshToken.cs +++ b/src/FiscalOS.Infra/Migrations/20260202125635_AddPropsToRefreshToken.cs @@ -1,41 +1,42 @@ using System; + using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace FiscalOS.Infra.Migrations { + /// + public partial class AddPropsToRefreshToken : Migration + { /// - public partial class AddPropsToRefreshToken : Migration + protected override void Up(MigrationBuilder migrationBuilder) { - /// - 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: "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"); - } + 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"); + } + } +} \ No newline at end of file diff --git a/src/FiscalOS.Infra/Migrations/20260202214513_AddIndexesWithUniquenessToModels.cs b/src/FiscalOS.Infra/Migrations/20260202214513_AddIndexesWithUniquenessToModels.cs index 7206d67..97ae830 100644 --- a/src/FiscalOS.Infra/Migrations/20260202214513_AddIndexesWithUniquenessToModels.cs +++ b/src/FiscalOS.Infra/Migrations/20260202214513_AddIndexesWithUniquenessToModels.cs @@ -4,35 +4,35 @@ namespace FiscalOS.Infra.Migrations { + /// + public partial class AddIndexesWithUniquenessToModels : Migration + { /// - public partial class AddIndexesWithUniquenessToModels : Migration + protected override void Up(MigrationBuilder migrationBuilder) { - /// - 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); - } - - /// - 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); } -} + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropIndex( + name: "IX_Users_Username", + table: "Users"); + + migrationBuilder.DropIndex( + name: "IX_RefreshTokens_Token", + table: "RefreshTokens"); + } + } +} \ No newline at end of file