LANCommander/LANCommander.Server.Data.MySQL/Migrations/20260628172954_AddUserRoleLimits.cs

59 lines
1.6 KiB
C#
Raw Permalink Normal View History

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