fd3602fa28
Build and Push Docker Image / build-and-push (push) Failing after 12m11s
- 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.
47 lines
1.4 KiB
C#
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");
|
|
}
|
|
}
|
|
}
|