36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace DataModel.Migrations
|
|
{
|
|
public partial class _202209AddManualFlag : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "TranslateManual",
|
|
table: "Translations",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
defaultValue: false);
|
|
|
|
migrationBuilder.CreateIndex(
|
|
name: "IX_Translations_TranslateManual",
|
|
table: "Translations",
|
|
column: "TranslateManual");
|
|
}
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.DropIndex(
|
|
name: "IX_Translations_TranslateManual",
|
|
table: "Translations");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "TranslateManual",
|
|
table: "Translations");
|
|
}
|
|
}
|
|
}
|