LANCommander/LANCommander.Server.Data.MySQL/Migrations/20260628181234_AddEnableSaves.cs

39 lines
1 KiB
C#
Raw Permalink Normal View History

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