I18NCommander/I18N Commander/DataModel/Migrations/20220710172935_202207AddTextElementName.cs

36 lines
1013 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace DataModel.Migrations
{
public partial class _202207AddTextElementName : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Name",
table: "TextElements",
type: "TEXT",
nullable: false,
defaultValue: "");
migrationBuilder.CreateIndex(
name: "IX_TextElements_Name",
table: "TextElements",
column: "Name");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_TextElements_Name",
table: "TextElements");
migrationBuilder.DropColumn(
name: "Name",
table: "TextElements");
}
}
}