40 lines
1.0 KiB
C#
40 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace AutomobilePlantDatabaseImplement.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class MbINeedItLC7 : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<bool>(
|
|
name: "IsReaded",
|
|
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: "IsReaded",
|
|
table: "Messages");
|
|
|
|
migrationBuilder.DropColumn(
|
|
name: "Reply",
|
|
table: "Messages");
|
|
}
|
|
}
|
|
}
|