mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-10-30 18:22:29 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.3 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Microsoft.EntityFrameworkCore.Migrations;
 | |
| 
 | |
| namespace API.Data.Migrations
 | |
| {
 | |
|     public partial class CacheMetadata : Migration
 | |
|     {
 | |
|         protected override void Up(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.AddColumn<int>(
 | |
|                 name: "Chapter",
 | |
|                 table: "MangaFile",
 | |
|                 type: "INTEGER",
 | |
|                 nullable: false,
 | |
|                 defaultValue: 0);
 | |
| 
 | |
|             migrationBuilder.AddColumn<int>(
 | |
|                 name: "Format",
 | |
|                 table: "MangaFile",
 | |
|                 type: "INTEGER",
 | |
|                 nullable: false,
 | |
|                 defaultValue: 0);
 | |
| 
 | |
|             migrationBuilder.AddColumn<int>(
 | |
|                 name: "NumberOfPages",
 | |
|                 table: "MangaFile",
 | |
|                 type: "INTEGER",
 | |
|                 nullable: false,
 | |
|                 defaultValue: 0);
 | |
|         }
 | |
| 
 | |
|         protected override void Down(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "Chapter",
 | |
|                 table: "MangaFile");
 | |
| 
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "Format",
 | |
|                 table: "MangaFile");
 | |
| 
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "NumberOfPages",
 | |
|                 table: "MangaFile");
 | |
|         }
 | |
|     }
 | |
| }
 |