using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace DataModel.Migrations { public partial class _202207AddTextElementName : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( 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"); } } }