mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-10-30 18:22:29 -04:00 
			
		
		
		
	* Code cleanup, refactored FileRepository into Unit of Work. * Added AutoCloseMenu and ReaderMode user perferences to match UI * Added extra information to ChapterInfo * Build changes * Updated the readme to have open collective information and thanks to sponsors * Fixed an issue with UnitOfWork refactor and how stats was bootsrapped. Replaced stats.kavitareader with a temp url to test out redirection bug.
		
			
				
	
	
		
			36 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			36 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Microsoft.EntityFrameworkCore.Migrations;
 | |
| 
 | |
| namespace API.Data.Migrations
 | |
| {
 | |
|     public partial class NewUserPreferences : Migration
 | |
|     {
 | |
|         protected override void Up(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.AddColumn<bool>(
 | |
|                 name: "AutoCloseMenu",
 | |
|                 table: "AppUserPreferences",
 | |
|                 type: "INTEGER",
 | |
|                 nullable: false,
 | |
|                 defaultValue: false);
 | |
| 
 | |
|             migrationBuilder.AddColumn<int>(
 | |
|                 name: "ReaderMode",
 | |
|                 table: "AppUserPreferences",
 | |
|                 type: "INTEGER",
 | |
|                 nullable: false,
 | |
|                 defaultValue: 0);
 | |
|         }
 | |
| 
 | |
|         protected override void Down(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "AutoCloseMenu",
 | |
|                 table: "AppUserPreferences");
 | |
| 
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "ReaderMode",
 | |
|                 table: "AppUserPreferences");
 | |
|         }
 | |
|     }
 | |
| }
 |