fix: ClubLoginNAme auf DB Ebene 50 Zeichen lang
This commit is contained in:
parent
adbca10cba
commit
10aedca9a2
|
|
@ -17,7 +17,7 @@ public class ClubConfiguration : IEntityTypeConfiguration<Club>
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
builder.Property(x => x.LoginName)
|
builder.Property(x => x.LoginName)
|
||||||
.HasMaxLength(10)
|
.HasMaxLength(50)
|
||||||
.IsRequired();
|
.IsRequired();
|
||||||
|
|
||||||
// Enum als int (Default) – explizit ist oft schöner
|
// Enum als int (Default) – explizit ist oft schöner
|
||||||
|
|
|
||||||
1633
src/Koogle.Infrastructure/Data/Migrations/20260107082529_IncreaseClubLoginNameLength.Designer.cs
generated
Normal file
1633
src/Koogle.Infrastructure/Data/Migrations/20260107082529_IncreaseClubLoginNameLength.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
|
@ -0,0 +1,40 @@
|
||||||
|
using Microsoft.EntityFrameworkCore.Migrations;
|
||||||
|
|
||||||
|
#nullable disable
|
||||||
|
|
||||||
|
namespace Koogle.Infrastructure.Data.Migrations
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
public partial class IncreaseClubLoginNameLength : Migration
|
||||||
|
{
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "LoginName",
|
||||||
|
schema: "app",
|
||||||
|
table: "Clubs",
|
||||||
|
type: "nvarchar(50)",
|
||||||
|
maxLength: 50,
|
||||||
|
nullable: false,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "nvarchar(10)",
|
||||||
|
oldMaxLength: 10);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
||||||
|
{
|
||||||
|
migrationBuilder.AlterColumn<string>(
|
||||||
|
name: "LoginName",
|
||||||
|
schema: "app",
|
||||||
|
table: "Clubs",
|
||||||
|
type: "nvarchar(10)",
|
||||||
|
maxLength: 10,
|
||||||
|
nullable: false,
|
||||||
|
oldClrType: typeof(string),
|
||||||
|
oldType: "nvarchar(50)",
|
||||||
|
oldMaxLength: 50);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -176,8 +176,8 @@ namespace Koogle.Infrastructure.Data.Migrations
|
||||||
|
|
||||||
b.Property<string>("LoginName")
|
b.Property<string>("LoginName")
|
||||||
.IsRequired()
|
.IsRequired()
|
||||||
.HasMaxLength(10)
|
.HasMaxLength(50)
|
||||||
.HasColumnType("nvarchar(10)");
|
.HasColumnType("nvarchar(50)");
|
||||||
|
|
||||||
b.Property<DateTime?>("ModifiedAt")
|
b.Property<DateTime?>("ModifiedAt")
|
||||||
.HasColumnType("datetime2");
|
.HasColumnType("datetime2");
|
||||||
|
|
|
||||||
|
|
@ -72,6 +72,7 @@
|
||||||
Label="Login-Name"
|
Label="Login-Name"
|
||||||
Variant="Variant.Outlined"
|
Variant="Variant.Outlined"
|
||||||
Required="true"
|
Required="true"
|
||||||
|
MaxLength="10"
|
||||||
HelperText="Eindeutiger Kurzname (z.B. meinclub)"
|
HelperText="Eindeutiger Kurzname (z.B. meinclub)"
|
||||||
Style="text-transform: lowercase;"
|
Style="text-transform: lowercase;"
|
||||||
Class="mb-3" />
|
Class="mb-3" />
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue