Files
jobtrackingapp/JobTrackerApi/Migrations/20260828090000_AddUiLanguagePreference.cs
T
2026-08-28 12:44:02 +02:00

28 lines
854 B
C#

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");
}
}