divan/RMuseum/Migrations/20261003143457_AddPersonGender.cs
Hamid Reza Mohammadi fecbf0ec3b people tags #387
2026-10-03 18:05:55 +03:30

41 lines
1.1 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace RMuseum.Migrations
{
/// <inheritdoc />
public partial class AddPersonGender : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<int>(
name: "Gender",
table: "GanjoorRelatedPersons",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
name: "SuggestedGender",
table: "GanjoorPersonEditSuggestions",
type: "int",
nullable: false,
defaultValue: 0);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Gender",
table: "GanjoorRelatedPersons");
migrationBuilder.DropColumn(
name: "SuggestedGender",
table: "GanjoorPersonEditSuggestions");
}
}
}