40 lines
1.1 KiB
C#
40 lines
1.1 KiB
C#
|
using Microsoft.EntityFrameworkCore.Migrations;
|
|||
|
|
|||
|
#nullable disable
|
|||
|
|
|||
|
namespace AircraftPlantDatabaseImplement.Migrations
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
public partial class MessageInfoUpdate : Migration
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.AddColumn<bool>(
|
|||
|
name: "IsChecked",
|
|||
|
table: "Messages",
|
|||
|
type: "bit",
|
|||
|
nullable: false,
|
|||
|
defaultValue: false);
|
|||
|
|
|||
|
migrationBuilder.AddColumn<string>(
|
|||
|
name: "Reply",
|
|||
|
table: "Messages",
|
|||
|
type: "nvarchar(max)",
|
|||
|
nullable: true);
|
|||
|
}
|
|||
|
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|||
|
{
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "IsChecked",
|
|||
|
table: "Messages");
|
|||
|
|
|||
|
migrationBuilder.DropColumn(
|
|||
|
name: "Reply",
|
|||
|
table: "Messages");
|
|||
|
}
|
|||
|
}
|
|||
|
}
|