2025-05-25 22:37:46 +02:00

45 lines
1.2 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace W542.GandalfReborn.Data.Migrations
{
/// <inheritdoc />
public partial class addIsMaster : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "IsMaster",
schema: "gr",
table: "TenantVersion",
type: "boolean",
nullable: false,
defaultValue: false);
migrationBuilder.AddColumn<bool>(
name: "IsMaster",
schema: "gr",
table: "Tenant",
type: "boolean",
nullable: false,
defaultValue: false);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "IsMaster",
schema: "gr",
table: "TenantVersion");
migrationBuilder.DropColumn(
name: "IsMaster",
schema: "gr",
table: "Tenant");
}
}
}