33 lines
878 B
C#
33 lines
878 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace gehGassi.Persistence.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class DeviceLanguageAdded : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<string>(
|
|
name: "Language",
|
|
table: "Devices",
|
|
type: "nvarchar(2)",
|
|
maxLength: 2,
|
|
nullable: false,
|
|
defaultValue: "");
|
|
|
|
migrationBuilder.Sql("UPDATE Devices SET Language='DE'");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropColumn(
|
|
name: "Language",
|
|
table: "Devices");
|
|
}
|
|
}
|
|
}
|