mirror of
				https://github.com/Kareadita/Kavita.git
				synced 2025-10-26 08:12:28 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			C#
		
	
	
	
	
	
| using Microsoft.EntityFrameworkCore.Migrations;
 | |
| 
 | |
| namespace API.Data.Migrations
 | |
| {
 | |
|     public partial class MiscCleanup : Migration
 | |
|     {
 | |
|         protected override void Up(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.DropColumn(
 | |
|                 name: "PasswordSalt",
 | |
|                 table: "AspNetUsers");
 | |
| 
 | |
|             migrationBuilder.AlterColumn<string>(
 | |
|                 name: "PasswordHash",
 | |
|                 table: "AspNetUsers",
 | |
|                 type: "TEXT",
 | |
|                 nullable: true,
 | |
|                 oldClrType: typeof(byte[]),
 | |
|                 oldType: "BLOB",
 | |
|                 oldNullable: true);
 | |
|         }
 | |
| 
 | |
|         protected override void Down(MigrationBuilder migrationBuilder)
 | |
|         {
 | |
|             migrationBuilder.AlterColumn<byte[]>(
 | |
|                 name: "PasswordHash",
 | |
|                 table: "AspNetUsers",
 | |
|                 type: "BLOB",
 | |
|                 nullable: true,
 | |
|                 oldClrType: typeof(string),
 | |
|                 oldType: "TEXT",
 | |
|                 oldNullable: true);
 | |
| 
 | |
|             migrationBuilder.AddColumn<byte[]>(
 | |
|                 name: "PasswordSalt",
 | |
|                 table: "AspNetUsers",
 | |
|                 type: "BLOB",
 | |
|                 nullable: true);
 | |
|         }
 | |
|     }
 | |
| }
 |