diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-08-29 13:02:41 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-08-29 13:02:41 +1000 |
| commit | e9f09559b80b83e12727fd24e90d8c7f31d64856 (patch) | |
| tree | ffb8f6d0f4ccc54618ff73164bcd323635dcea71 /Migrations/20230829010104_MediaSize.cs | |
| parent | da640de1095395e28060211dfc9b6be82924bfd6 (diff) | |
Added width and height properties to media objects
Diffstat (limited to 'Migrations/20230829010104_MediaSize.cs')
| -rw-r--r-- | Migrations/20230829010104_MediaSize.cs | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/Migrations/20230829010104_MediaSize.cs b/Migrations/20230829010104_MediaSize.cs new file mode 100644 index 0000000..734064c --- /dev/null +++ b/Migrations/20230829010104_MediaSize.cs @@ -0,0 +1,40 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace HyperBooru.Migrations +{ + /// <inheritdoc /> + public partial class MediaSize : Migration + { + /// <inheritdoc /> + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn<int>( + name: "Height", + table: "Media", + type: "integer", + nullable: false, + defaultValue: 0); + + migrationBuilder.AddColumn<int>( + name: "Width", + table: "Media", + type: "integer", + nullable: false, + defaultValue: 0); + } + + /// <inheritdoc /> + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "Height", + table: "Media"); + + migrationBuilder.DropColumn( + name: "Width", + table: "Media"); + } + } +} |
