2020-10-04 13:43:20 -04:00
|
|
|
|
#pragma warning disable CS1591
|
|
|
|
|
#pragma warning disable SA1601
|
|
|
|
|
|
|
|
|
|
using Microsoft.EntityFrameworkCore.Migrations;
|
2020-10-04 13:14:32 -04:00
|
|
|
|
|
|
|
|
|
namespace Jellyfin.Server.Implementations.Migrations
|
|
|
|
|
{
|
2020-10-04 20:31:24 -04:00
|
|
|
|
public partial class AddMaxActiveSessions : Migration
|
2020-10-04 13:14:32 -04:00
|
|
|
|
{
|
|
|
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
|
|
|
name: "MaxActiveSessions",
|
|
|
|
|
schema: "jellyfin",
|
|
|
|
|
table: "Users",
|
2020-10-05 13:33:22 -04:00
|
|
|
|
nullable: false);
|
2020-10-04 13:14:32 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
|
|
|
{
|
|
|
|
|
migrationBuilder.DropColumn(
|
|
|
|
|
name: "MaxActiveSessions",
|
|
|
|
|
schema: "jellyfin",
|
|
|
|
|
table: "Users");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|