mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-11-03 19:17:05 -05:00 
			
		
		
		
	* Stashing code * removed some debug code on series detail page. Now detail is collapsed by default. * Added AgeRating * Fixed a crash when NetVips tries to write a cover file and cover directory is not existing. * When a card is selected for bulk actions, show an outline in addition to select box * Added AgeRating into the metadata parsing. Added a hack where ComicInfo uses Number in ComicInfo rather than Volume. This is to test out the effects on users libraries. * Added AgeRating and ReleaseDate to the metadata implelentation.
		
			
				
	
	
		
			50 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			50 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
using System;
 | 
						|
using Microsoft.EntityFrameworkCore.Migrations;
 | 
						|
 | 
						|
#nullable disable
 | 
						|
 | 
						|
namespace API.Data.Migrations
 | 
						|
{
 | 
						|
    public partial class AgeRatingAndReleaseDate : Migration
 | 
						|
    {
 | 
						|
        protected override void Up(MigrationBuilder migrationBuilder)
 | 
						|
        {
 | 
						|
            migrationBuilder.AddColumn<int>(
 | 
						|
                name: "ReleaseYear",
 | 
						|
                table: "SeriesMetadata",
 | 
						|
                type: "INTEGER",
 | 
						|
                nullable: false,
 | 
						|
                defaultValue: 0);
 | 
						|
 | 
						|
            migrationBuilder.AddColumn<int>(
 | 
						|
                name: "AgeRating",
 | 
						|
                table: "Chapter",
 | 
						|
                type: "INTEGER",
 | 
						|
                nullable: false,
 | 
						|
                defaultValue: 0);
 | 
						|
 | 
						|
            migrationBuilder.AddColumn<DateTime>(
 | 
						|
                name: "ReleaseDate",
 | 
						|
                table: "Chapter",
 | 
						|
                type: "TEXT",
 | 
						|
                nullable: false,
 | 
						|
                defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified));
 | 
						|
        }
 | 
						|
 | 
						|
        protected override void Down(MigrationBuilder migrationBuilder)
 | 
						|
        {
 | 
						|
            migrationBuilder.DropColumn(
 | 
						|
                name: "ReleaseYear",
 | 
						|
                table: "SeriesMetadata");
 | 
						|
 | 
						|
            migrationBuilder.DropColumn(
 | 
						|
                name: "AgeRating",
 | 
						|
                table: "Chapter");
 | 
						|
 | 
						|
            migrationBuilder.DropColumn(
 | 
						|
                name: "ReleaseDate",
 | 
						|
                table: "Chapter");
 | 
						|
        }
 | 
						|
    }
 | 
						|
}
 |