Files
BirthList/src/BirthList.Infrastructure/Migrations/20260517154344_RenameCanBeSecondHandToPreferSecondHand.cs
T
Arne Moerman fd3602fa28
Build and Push Docker Image / build-and-push (push) Failing after 12m11s
Add UserActionLog and enhance registry features
- Introduced `UserActionLog` entity to track user actions.
- Replaced `CanBeSecondHand` with `PreferSecondHand` property.
- Added `ShowBankAccountName` to `RegistrySettings`.
- Updated models and migrations for new properties.
- Enhanced `RegistryService` with user action logging and item details.
- Redesigned `Home.razor` with a grid layout and modal for registries.
- Added `RegistryActionLog.razor` for admin action logs.
- Improved `RegistryPublic.razor` with purchaser/contributor details.
- Replaced sidebar with `TopBar.razor` for responsive navigation.
- Updated CSS for new components and improved responsiveness.
2026-05-17 20:57:54 +02:00

47 lines
1.4 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace BirthList.Infrastructure.Migrations
{
/// <inheritdoc />
public partial class RenameCanBeSecondHandToPreferSecondHand : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.RenameColumn(
name: "CanBeSecondHand",
table: "RegistryItems",
newName: "PreferSecondHand");
migrationBuilder.AlterColumn<bool>(
name: "PreferSecondHand",
table: "RegistryItems",
type: "bit",
nullable: true,
oldClrType: typeof(bool),
oldType: "bit");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<bool>(
name: "PreferSecondHand",
table: "RegistryItems",
type: "bit",
nullable: false,
defaultValue: false,
oldClrType: typeof(bool),
oldType: "bit",
oldNullable: true);
migrationBuilder.RenameColumn(
name: "PreferSecondHand",
table: "RegistryItems",
newName: "CanBeSecondHand");
}
}
}