summaryrefslogtreecommitdiffstats
path: root/src/Migrations/20230115182252_DeletionKey.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Migrations/20230115182252_DeletionKey.cs')
-rw-r--r--src/Migrations/20230115182252_DeletionKey.cs40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/Migrations/20230115182252_DeletionKey.cs b/src/Migrations/20230115182252_DeletionKey.cs
new file mode 100644
index 0000000..3feba6b
--- /dev/null
+++ b/src/Migrations/20230115182252_DeletionKey.cs
@@ -0,0 +1,40 @@
+using Microsoft.EntityFrameworkCore.Migrations;
+
+#nullable disable
+
+namespace BlobBin.Migrations
+{
+ /// <inheritdoc />
+ public partial class DeletionKey : Migration
+ {
+ /// <inheritdoc />
+ protected override void Up(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.AddColumn<string>(
+ name: "DeletionKey",
+ table: "Pastes",
+ type: "TEXT",
+ nullable: false,
+ defaultValue: "");
+
+ migrationBuilder.AddColumn<string>(
+ name: "DeletionKey",
+ table: "Files",
+ type: "TEXT",
+ nullable: false,
+ defaultValue: "");
+ }
+
+ /// <inheritdoc />
+ protected override void Down(MigrationBuilder migrationBuilder)
+ {
+ migrationBuilder.DropColumn(
+ name: "DeletionKey",
+ table: "Pastes");
+
+ migrationBuilder.DropColumn(
+ name: "DeletionKey",
+ table: "Files");
+ }
+ }
+}