Revert "chore: format via csharpier"

This reverts commit 7a2eb699f4.
This commit is contained in:
2026-01-09 15:24:19 -05:00
parent 7a2eb699f4
commit 6bea6c49be
35 changed files with 464 additions and 784 deletions
@@ -10,35 +10,47 @@ 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",
@@ -46,8 +58,7 @@ namespace SharpbinV3.Server.Migrations
column: "AuthorUUID",
principalTable: "Users",
principalColumn: "UUID",
onDelete: ReferentialAction.Cascade
);
onDelete: ReferentialAction.Cascade);
migrationBuilder.AddForeignKey(
name: "FK_RefreshTokens_Users_UserUUID",
@@ -55,76 +66,73 @@ 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");
}
}
}