summaryrefslogtreecommitdiff
path: root/Migrations/20230829031727_FileLength.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Migrations/20230829031727_FileLength.cs')
-rw-r--r--Migrations/20230829031727_FileLength.cs29
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");
+ }
+ }
+}