LANCommander/LANCommander.Server.Data.PostgreSQL/Migrations/20260628181115_AddEnableSaves.cs
2026-06-28 14:09:02 -05:00

38 lines
1 KiB
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace LANCommander.Server.Data.PostgreSQL.Migrations
{
/// <inheritdoc />
public partial class AddEnableSaves : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<bool>(
name: "EnableSaves",
table: "Users",
type: "boolean",
nullable: true);
migrationBuilder.AddColumn<bool>(
name: "EnableSaves",
table: "Roles",
type: "boolean",
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "EnableSaves",
table: "Users");
migrationBuilder.DropColumn(
name: "EnableSaves",
table: "Roles");
}
}
}