PIbd-21_Balberova_D.N._Sush.../SushiBar/SushiBarDatabaseImplement/Migrations/20230502124207_AnswersMigration.cs
2023-05-02 17:43:48 +04:00

40 lines
1.0 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace SushiBarDatabaseImplement.Migrations
{
/// <inheritdoc />
public partial class AnswersMigration : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "Answer",
table: "Messages",
type: "nvarchar(max)",
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "HasRead",
table: "Messages",
type: "bit",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Answer",
table: "Messages");
migrationBuilder.DropColumn(
name: "HasRead",
table: "Messages");
}
}
}