diff options
| author | Jake Mannens <jake@asger.xyz> | 2023-09-05 14:02:11 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2023-09-05 14:02:11 +1000 |
| commit | 02da841c350cecc985b6b161fb175e7e5882e1d5 (patch) | |
| tree | 24c37feaa0b24160fb28ef971adc1bc674ec63d6 /Migrations/20230905034704_ChecksumVerified.cs | |
| parent | 7bc3919cabff51806068659be03884913054cff8 (diff) | |
MediaService now records whether the checksum was verified at upload time
Diffstat (limited to 'Migrations/20230905034704_ChecksumVerified.cs')
| -rw-r--r-- | Migrations/20230905034704_ChecksumVerified.cs | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/Migrations/20230905034704_ChecksumVerified.cs b/Migrations/20230905034704_ChecksumVerified.cs new file mode 100644 index 0000000..8ac1f58 --- /dev/null +++ b/Migrations/20230905034704_ChecksumVerified.cs @@ -0,0 +1,29 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace HyperBooru.Migrations +{ + /// <inheritdoc /> + public partial class ChecksumVerified : Migration + { + /// <inheritdoc /> + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AddColumn<bool>( + name: "ChecksumVerified", + table: "UploadedFiles", + type: "boolean", + nullable: false, + defaultValue: false); + } + + /// <inheritdoc /> + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropColumn( + name: "ChecksumVerified", + table: "UploadedFiles"); + } + } +} |
