mirror of
				https://github.com/jellyfin/jellyfin.git
				synced 2025-11-03 11:07:21 -05:00 
			
		
		
		
	Add index for DateCreated on ActivityLogs Original-merge: 39b29eb9f1250a025f6a78b451c1a79df39ed5e9 Merged-by: Claus Vium <cvium@users.noreply.github.com> Backported-by: Joshua M. Boniface <joshua@boniface.me>
		
			
				
	
	
		
			29 lines
		
	
	
		
			811 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			811 B
		
	
	
	
		
			C#
		
	
	
	
	
	
#pragma warning disable CS1591, SA1601
 | 
						|
 | 
						|
using Microsoft.EntityFrameworkCore.Migrations;
 | 
						|
 | 
						|
#nullable disable
 | 
						|
 | 
						|
namespace Jellyfin.Server.Implementations.Migrations
 | 
						|
{
 | 
						|
    public partial class AddIndexActivityLogsDateCreated : Migration
 | 
						|
    {
 | 
						|
        protected override void Up(MigrationBuilder migrationBuilder)
 | 
						|
        {
 | 
						|
            migrationBuilder.CreateIndex(
 | 
						|
                name: "IX_ActivityLogs_DateCreated",
 | 
						|
                schema: "jellyfin",
 | 
						|
                table: "ActivityLogs",
 | 
						|
                column: "DateCreated");
 | 
						|
        }
 | 
						|
 | 
						|
        protected override void Down(MigrationBuilder migrationBuilder)
 | 
						|
        {
 | 
						|
            migrationBuilder.DropIndex(
 | 
						|
                name: "IX_ActivityLogs_DateCreated",
 | 
						|
                schema: "jellyfin",
 | 
						|
                table: "ActivityLogs");
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |