Files
server/MareSynchronosServer/MareSynchronosShared/Migrations/20240904144711_AddRawFileSize.cs
2024-09-04 16:53:05 +02:00

30 lines
773 B
C#

using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace MareSynchronosServer.Migrations
{
/// <inheritdoc />
public partial class AddRawFileSize : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<long>(
name: "raw_size",
table: "file_caches",
type: "bigint",
nullable: false,
defaultValue: 0L);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "raw_size",
table: "file_caches");
}
}
}