mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-11-03 19:17:05 -05:00 
			
		
		
		
	* Bump loader-utils from 2.0.3 to 2.0.4 in /UI/Web Bumps [loader-utils](https://github.com/webpack/loader-utils) from 2.0.3 to 2.0.4. - [Release notes](https://github.com/webpack/loader-utils/releases) - [Changelog](https://github.com/webpack/loader-utils/blob/v2.0.4/CHANGELOG.md) - [Commits](https://github.com/webpack/loader-utils/compare/v2.0.3...v2.0.4) --- updated-dependencies: - dependency-name: loader-utils dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> * Fixed want to read button on series detail not performing the correct action * Started the library settings. Added ability to update a cover image for a library. Updated backup db to also copy reading list (and now library) cover images. * Integrated Edit Library into new settings (not tested) and hooked up a wizard-like flow for new library. * Fixed a missing update event in backend when updating a library. * Disable Save when form invalid. Do inline validation on Library name when user types to ensure the name is valid. * Trim library names before you check anything * General code cleanup * Implemented advanced settings for library (include in dashboard, search, recommended) and ability to turn off folder watching for individual libraries. Refactored some code to streamline perf in some flows. * Removed old components replaced with new modal * Code smells Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
		
			
				
	
	
		
			60 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			60 lines
		
	
	
		
			1.7 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
using Microsoft.EntityFrameworkCore.Migrations;
 | 
						|
 | 
						|
#nullable disable
 | 
						|
 | 
						|
namespace API.Data.Migrations
 | 
						|
{
 | 
						|
    public partial class ExtendedLibrarySettings : Migration
 | 
						|
    {
 | 
						|
        protected override void Up(MigrationBuilder migrationBuilder)
 | 
						|
        {
 | 
						|
            migrationBuilder.AddColumn<bool>(
 | 
						|
                name: "FolderWatching",
 | 
						|
                table: "Library",
 | 
						|
                type: "INTEGER",
 | 
						|
                nullable: false,
 | 
						|
                defaultValue: true);
 | 
						|
 | 
						|
            migrationBuilder.AddColumn<bool>(
 | 
						|
                name: "IncludeInDashboard",
 | 
						|
                table: "Library",
 | 
						|
                type: "INTEGER",
 | 
						|
                nullable: false,
 | 
						|
                defaultValue: true);
 | 
						|
 | 
						|
            migrationBuilder.AddColumn<bool>(
 | 
						|
                name: "IncludeInRecommended",
 | 
						|
                table: "Library",
 | 
						|
                type: "INTEGER",
 | 
						|
                nullable: false,
 | 
						|
                defaultValue: true);
 | 
						|
 | 
						|
            migrationBuilder.AddColumn<bool>(
 | 
						|
                name: "IncludeInSearch",
 | 
						|
                table: "Library",
 | 
						|
                type: "INTEGER",
 | 
						|
                nullable: false,
 | 
						|
                defaultValue: true);
 | 
						|
        }
 | 
						|
 | 
						|
        protected override void Down(MigrationBuilder migrationBuilder)
 | 
						|
        {
 | 
						|
            migrationBuilder.DropColumn(
 | 
						|
                name: "FolderWatching",
 | 
						|
                table: "Library");
 | 
						|
 | 
						|
            migrationBuilder.DropColumn(
 | 
						|
                name: "IncludeInDashboard",
 | 
						|
                table: "Library");
 | 
						|
 | 
						|
            migrationBuilder.DropColumn(
 | 
						|
                name: "IncludeInRecommended",
 | 
						|
                table: "Library");
 | 
						|
 | 
						|
            migrationBuilder.DropColumn(
 | 
						|
                name: "IncludeInSearch",
 | 
						|
                table: "Library");
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |