mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-11-03 11:07:06 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
		
			756 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
		
			756 B
		
	
	
	
		
			C#
		
	
	
	
	
	
using Microsoft.EntityFrameworkCore.Migrations;
 | 
						|
 | 
						|
#nullable disable
 | 
						|
 | 
						|
namespace API.Data.Migrations
 | 
						|
{
 | 
						|
    /// <inheritdoc />
 | 
						|
    public partial class ChapterIssueSort : Migration
 | 
						|
    {
 | 
						|
        /// <inheritdoc />
 | 
						|
        protected override void Up(MigrationBuilder migrationBuilder)
 | 
						|
        {
 | 
						|
            migrationBuilder.AddColumn<float>(
 | 
						|
                name: "SortOrder",
 | 
						|
                table: "Chapter",
 | 
						|
                type: "REAL",
 | 
						|
                nullable: false,
 | 
						|
                defaultValue: 0f);
 | 
						|
        }
 | 
						|
 | 
						|
        /// <inheritdoc />
 | 
						|
        protected override void Down(MigrationBuilder migrationBuilder)
 | 
						|
        {
 | 
						|
            migrationBuilder.DropColumn(
 | 
						|
                name: "SortOrder",
 | 
						|
                table: "Chapter");
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |