mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-10-31 18:47:18 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			29 lines
		
	
	
		
			801 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			801 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| #pragma warning disable CS1591
 | |
| #pragma warning disable SA1601
 | |
| 
 | |
| using Microsoft.EntityFrameworkCore.Migrations;
 | |
| 
 | |
| namespace Jellyfin.Server.Implementations.Migrations
 | |
| {
 | |
|     public partial class AddMaxActiveSessions : Migration
 | |
|     {
 | |
|         protected override void Up(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.AddColumn<int>(
 | |
|                 name: "MaxActiveSessions",
 | |
|                 schema: "jellyfin",
 | |
|                 table: "Users",
 | |
|                 nullable: false,
 | |
|                 defaultValue: 0);
 | |
|         }
 | |
| 
 | |
|         protected override void Down(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "MaxActiveSessions",
 | |
|                 schema: "jellyfin",
 | |
|                 table: "Users");
 | |
|         }
 | |
|     }
 | |
| }
 |