feat(i18n): persist Bokmal preference globally
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using JobTrackerApi.Data;
|
||||
using Microsoft.EntityFrameworkCore.Infrastructure;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace JobTrackerApi.Migrations;
|
||||
|
||||
[DbContext(typeof(JobTrackerContext))]
|
||||
[Migration("20260828090000_AddUiLanguagePreference")]
|
||||
public partial class AddUiLanguagePreference : Migration
|
||||
{
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<string>(
|
||||
name: "UiLanguage",
|
||||
table: "AspNetUsers",
|
||||
type: ActiveProvider.Contains("MySql", StringComparison.OrdinalIgnoreCase) ? "varchar(16)" : "TEXT",
|
||||
maxLength: 16,
|
||||
nullable: true);
|
||||
}
|
||||
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(name: "UiLanguage", table: "AspNetUsers");
|
||||
}
|
||||
}
|
||||
@@ -481,6 +481,10 @@ namespace JobTrackerApi.Migrations
|
||||
b.Property<string>("StripeSubscriptionStatus")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<string>("UiLanguage")
|
||||
.HasMaxLength(16)
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
b.Property<DateTimeOffset?>("TotpEnabledAtUtc")
|
||||
.HasColumnType("TEXT");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user