I18NCommander/I18N Commander/DataModel/Migrations/20220709095404_202207AddSectionDepth.cs

36 lines
990 B
C#
Raw Permalink Normal View History

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace DataModel.Migrations
{
public partial class _202207AddSectionDepth : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "Depth",
table: "Sections",
type: "INTEGER",
nullable: false,
defaultValue: 0);
migrationBuilder.CreateIndex(
name: "IX_Sections_Depth",
table: "Sections",
column: "Depth");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_Sections_Depth",
table: "Sections");
migrationBuilder.DropColumn(
name: "Depth",
table: "Sections");
}
}
}