From f63484b7d5090cacc6c14918e936824154c85093 Mon Sep 17 00:00:00 2001 From: Jake Mannens Date: Tue, 29 Aug 2023 13:21:08 +1000 Subject: Uploaded files now record the original file size --- Migrations/20230829031727_FileLength.cs | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Migrations/20230829031727_FileLength.cs (limited to 'Migrations/20230829031727_FileLength.cs') diff --git a/Migrations/20230829031727_FileLength.cs b/Migrations/20230829031727_FileLength.cs new file mode 100644 index 0000000..d4531e7 --- /dev/null +++ b/Migrations/20230829031727_FileLength.cs @@ -0,0 +1,29 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace HyperBooru.Migrations +{ + /// + public partial class FileLength : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn( + name: "Length", + table: "UploadedFiles", + type: "bigint", + nullable: false, + defaultValue: 0L); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Length", + table: "UploadedFiles"); + } + } +} -- cgit v1.3