divan/RMuseum/Migrations/20241212141055_GeoAIFields.cs
Hamid Reza Mohammadi e6ebc8e878 #454 db migrations
2024-12-12 17:42:03 +03:30

52 lines
1.5 KiB
C#

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