mirror of
https://github.com/jjbrunton/Convertarr.git
synced 2026-10-31 09:59:43 +00:00
35 lines
958 B
C#
35 lines
958 B
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace Convertarr.Data.Migrations
|
|
{
|
|
/// <inheritdoc />
|
|
public partial class AttributesWithLength : Migration
|
|
{
|
|
/// <inheritdoc />
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<long>(
|
|
name: "FileSize",
|
|
table: "Files",
|
|
type: "INTEGER",
|
|
nullable: false,
|
|
oldClrType: typeof(string),
|
|
oldType: "TEXT");
|
|
}
|
|
|
|
/// <inheritdoc />
|
|
protected override void Down(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AlterColumn<string>(
|
|
name: "FileSize",
|
|
table: "Files",
|
|
type: "TEXT",
|
|
nullable: false,
|
|
oldClrType: typeof(long),
|
|
oldType: "INTEGER");
|
|
}
|
|
}
|
|
}
|