- Added image upload system (JPG/PNG, max 5MB) with live preview and removal option - Fixed Concurrency Exception during deletion (split transactions for reports and entries) - Optimized card layout: consistent height and height-based truncation for descriptions - Added sort direction toggle (Ascending/Descending) with arrow icons for Date, Name, and Year - Refactored HallOfFameService to use streams for Server/Wasm compatibility - Improved error handling and UI feedback for upload and delete operations
44 lines
1.4 KiB
C#
44 lines
1.4 KiB
C#
using Microsoft.EntityFrameworkCore.Infrastructure;
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|
using Oqtane.Databases.Interfaces;
|
|
using Oqtane.Migrations;
|
|
using SZUAbsolventenverein.Module.HallOfFame.Migrations.EntityBuilders;
|
|
using SZUAbsolventenverein.Module.HallOfFame.Repository;
|
|
|
|
namespace SZUAbsolventenverein.Module.HallOfFame.Migrations
|
|
{
|
|
[DbContext(typeof(HallOfFameContext))]
|
|
[Migration("SZUAbsolventenverein.Module.HallOfFame.01.00.00.02")]
|
|
public class AddReportingColumns : MultiDatabaseMigration
|
|
{
|
|
public AddReportingColumns(IDatabase database) : base(database)
|
|
{
|
|
}
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsReported",
|
|
table: "SZUAbsolventenvereinHallOfFame",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "ReportReason",
|
|
table: "SZUAbsolventenvereinHallOfFame",
|
|
nullable: true);
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "IsReported",
|
|
table: "SZUAbsolventenvereinHallOfFame");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "ReportReason",
|
|
table: "SZUAbsolventenvereinHallOfFame");
|
|
}
|
|
}
|
|
}
|