diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-29 13:21:08 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-08-29 13:21:08 +1000 |
| commit | f63484b7d5090cacc6c14918e936824154c85093 (patch) | |
| tree | 411fbd76464511f3c0378dcb0cc7ea0bc0797b1c /Migrations/20230829031727_FileLength.cs | |
| parent | e9f09559b80b83e12727fd24e90d8c7f31d64856 (diff) | |
Uploaded files now record the original file size
Diffstat (limited to 'Migrations/20230829031727_FileLength.cs')
| -rw-r--r-- | Migrations/20230829031727_FileLength.cs | 29 |
1 files changed, 29 insertions, 0 deletions
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 +{ + /// <inheritdoc /> + public partial class FileLength : Migration + { + /// <inheritdoc /> + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn<long>( + name: "Length", + table: "UploadedFiles", + type: "bigint", + nullable: false, + defaultValue: 0L); + } + + /// <inheritdoc /> + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Length", + table: "UploadedFiles"); + } + } +} |
