chore: format via csharpier

This commit is contained in:
2026-01-09 15:13:57 -05:00
parent 284c5e927e
commit 7a2eb699f4
35 changed files with 784 additions and 464 deletions
@@ -10,47 +10,35 @@ namespace SharpbinV3.Server.Migrations
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Pastes_Users_UserUID",
table: "Pastes");
migrationBuilder.DropForeignKey(name: "FK_Pastes_Users_UserUID", table: "Pastes");
migrationBuilder.DropForeignKey(
name: "FK_RefreshTokens_Users_UserUID",
table: "RefreshTokens");
table: "RefreshTokens"
);
migrationBuilder.DropPrimaryKey(
name: "PK_Users",
table: "Users");
migrationBuilder.DropPrimaryKey(name: "PK_Users", table: "Users");
migrationBuilder.DropIndex(
name: "IX_RefreshTokens_UserUID",
table: "RefreshTokens");
migrationBuilder.DropIndex(name: "IX_RefreshTokens_UserUID", table: "RefreshTokens");
migrationBuilder.DropIndex(
name: "IX_Pastes_UserUID",
table: "Pastes");
migrationBuilder.DropIndex(name: "IX_Pastes_UserUID", table: "Pastes");
migrationBuilder.DropColumn(
name: "UserUID",
table: "RefreshTokens");
migrationBuilder.DropColumn(name: "UserUID", table: "RefreshTokens");
migrationBuilder.DropColumn(
name: "UserUID",
table: "Pastes");
migrationBuilder.DropColumn(name: "UserUID", table: "Pastes");
migrationBuilder.AlterColumn<int>(
name: "UID",
table: "Users",
type: "INTEGER",
nullable: false,
oldClrType: typeof(int),
oldType: "INTEGER")
migrationBuilder
.AlterColumn<int>(
name: "UID",
table: "Users",
type: "INTEGER",
nullable: false,
oldClrType: typeof(int),
oldType: "INTEGER"
)
.OldAnnotation("Sqlite:Autoincrement", true);
migrationBuilder.AddPrimaryKey(
name: "PK_Users",
table: "Users",
column: "UUID");
migrationBuilder.AddPrimaryKey(name: "PK_Users", table: "Users", column: "UUID");
migrationBuilder.AddForeignKey(
name: "FK_Pastes_Users_AuthorUUID",
@@ -58,7 +46,8 @@ namespace SharpbinV3.Server.Migrations
column: "AuthorUUID",
principalTable: "Users",
principalColumn: "UUID",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.Cascade
);
migrationBuilder.AddForeignKey(
name: "FK_RefreshTokens_Users_UserUUID",
@@ -66,73 +55,76 @@ namespace SharpbinV3.Server.Migrations
column: "UserUUID",
principalTable: "Users",
principalColumn: "UUID",
onDelete: ReferentialAction.Cascade);
onDelete: ReferentialAction.Cascade
);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropForeignKey(
name: "FK_Pastes_Users_AuthorUUID",
table: "Pastes");
migrationBuilder.DropForeignKey(name: "FK_Pastes_Users_AuthorUUID", table: "Pastes");
migrationBuilder.DropForeignKey(
name: "FK_RefreshTokens_Users_UserUUID",
table: "RefreshTokens");
table: "RefreshTokens"
);
migrationBuilder.DropPrimaryKey(
name: "PK_Users",
table: "Users");
migrationBuilder.DropPrimaryKey(name: "PK_Users", table: "Users");
migrationBuilder.AlterColumn<int>(
name: "UID",
table: "Users",
type: "INTEGER",
nullable: false,
oldClrType: typeof(int),
oldType: "INTEGER")
migrationBuilder
.AlterColumn<int>(
name: "UID",
table: "Users",
type: "INTEGER",
nullable: false,
oldClrType: typeof(int),
oldType: "INTEGER"
)
.Annotation("Sqlite:Autoincrement", true);
migrationBuilder.AddColumn<int>(
name: "UserUID",
table: "RefreshTokens",
type: "INTEGER",
nullable: true);
nullable: true
);
migrationBuilder.AddColumn<int>(
name: "UserUID",
table: "Pastes",
type: "INTEGER",
nullable: true);
nullable: true
);
migrationBuilder.AddPrimaryKey(
name: "PK_Users",
table: "Users",
column: "UID");
migrationBuilder.AddPrimaryKey(name: "PK_Users", table: "Users", column: "UID");
migrationBuilder.CreateIndex(
name: "IX_RefreshTokens_UserUID",
table: "RefreshTokens",
column: "UserUID");
column: "UserUID"
);
migrationBuilder.CreateIndex(
name: "IX_Pastes_UserUID",
table: "Pastes",
column: "UserUID");
column: "UserUID"
);
migrationBuilder.AddForeignKey(
name: "FK_Pastes_Users_UserUID",
table: "Pastes",
column: "UserUID",
principalTable: "Users",
principalColumn: "UID");
principalColumn: "UID"
);
migrationBuilder.AddForeignKey(
name: "FK_RefreshTokens_Users_UserUID",
table: "RefreshTokens",
column: "UserUID",
principalTable: "Users",
principalColumn: "UID");
principalColumn: "UID"
);
}
}
}