LANCommander/LANCommander.Server.Data.SQLite/Migrations/20260628180740_AddEnableSaves.cs

39 lines
1,019 B
C#
Raw Permalink Normal View History

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