mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 11:01:10 +00:00
38 lines
1.0 KiB
C#
38 lines
1.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Lumina.DataAccess.Common.Migrations;
|
|
|
|
/// <inheritdoc />
|
|
public partial class ChangesLibraryScanResultContentHashColumnToUlong : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<ulong>(
|
|
name: "ContentHash",
|
|
table: "LibraryScanResults",
|
|
type: "INTEGER",
|
|
maxLength: 24,
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT",
|
|
oldMaxLength: 24);
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "ContentHash",
|
|
table: "LibraryScanResults",
|
|
type: "TEXT",
|
|
maxLength: 24,
|
|
nullable: false,
|
|
oldClrType: typeof(ulong),
|
|
oldType: "INTEGER",
|
|
oldMaxLength: 24);
|
|
}
|
|
}
|