divan/RMuseum/Migrations/20231215125558_PoemPlusClaimedByMultiplePoets.cs
2023-12-15 16:37:34 +03:30

41 lines
1.1 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RMuseum.Migrations
{
/// <inheritdoc />
public partial class PoemPlusClaimedByMultiplePoets : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "ClaimedByBothPoets",
table: "GanjoorQuotedPoems",
type: "bit",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "ClaimedByMultiplePoets",
table: "GanjoorPoems",
type: "bit",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "ClaimedByBothPoets",
table: "GanjoorQuotedPoems");
migrationBuilder.DropColumn(
name: "ClaimedByMultiplePoets",
table: "GanjoorPoems");
}
}
}