add raw filesize to db

This commit is contained in:
Stanley Dimant 2024-09-04 16:53:05 +02:00
parent c2cc8e28f8
commit efe7fe98f2
6 changed files with 812 additions and 3 deletions

View file

@ -0,0 +1,29 @@
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");
}
}
}