summaryrefslogtreecommitdiffstats
path: root/BlobBin/Migrations/20230110204008_InitialCreate.cs
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2023-01-13 00:04:12 +0100
committerivarlovlie <git@ivarlovlie.no>2023-01-13 00:04:12 +0100
commit971c00b8f5977db9422eeafa47b262c1030bd4af (patch)
tree09ec55186f0f85d983b3be1754c6393123bc4363 /BlobBin/Migrations/20230110204008_InitialCreate.cs
parenta9860b28f2be123d1f0bfad504165992a4c841ed (diff)
downloadblob-bin-971c00b8f5977db9422eeafa47b262c1030bd4af.tar.xz
blob-bin-971c00b8f5977db9422eeafa47b262c1030bd4af.zip
feat: working file upload
Diffstat (limited to 'BlobBin/Migrations/20230110204008_InitialCreate.cs')
-rw-r--r--BlobBin/Migrations/20230110204008_InitialCreate.cs65
1 files changed, 0 insertions, 65 deletions
diff --git a/BlobBin/Migrations/20230110204008_InitialCreate.cs b/BlobBin/Migrations/20230110204008_InitialCreate.cs
deleted file mode 100644
index 1614b01..0000000
--- a/BlobBin/Migrations/20230110204008_InitialCreate.cs
+++ /dev/null
@@ -1,65 +0,0 @@
-using System;
-using Microsoft.EntityFrameworkCore.Migrations;
-
-#nullable disable
-
-namespace BlobBin.Migrations
-{
- /// <inheritdoc />
- public partial class InitialCreate : Migration
- {
- /// <inheritdoc />
- protected override void Up(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.CreateTable(
- name: "Files",
- columns: table => new
- {
- Id = table.Column<Guid>(type: "TEXT", nullable: false),
- Name = table.Column<string>(type: "TEXT", nullable: false),
- Length = table.Column<long>(type: "INTEGER", nullable: false),
- CreatedAt = table.Column<DateTime>(type: "TEXT", nullable: false),
- CreatedBy = table.Column<string>(type: "TEXT", nullable: false),
- DeletedAt = table.Column<DateTime>(type: "TEXT", nullable: true),
- PasswordHash = table.Column<string>(type: "TEXT", nullable: true),
- Singleton = table.Column<bool>(type: "INTEGER", nullable: false),
- AutoDeleteAfter = table.Column<string>(type: "TEXT", nullable: true),
- MimeType = table.Column<string>(type: "TEXT", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Files", x => x.Id);
- });
-
- migrationBuilder.CreateTable(
- name: "Pastes",
- columns: table => new
- {
- Id = table.Column<Guid>(type: "TEXT", nullable: false),
- Name = table.Column<string>(type: "TEXT", nullable: false),
- Length = table.Column<long>(type: "INTEGER", nullable: false),
- CreatedAt = table.Column<DateTime>(type: "TEXT", nullable: false),
- CreatedBy = table.Column<string>(type: "TEXT", nullable: false),
- DeletedAt = table.Column<DateTime>(type: "TEXT", nullable: true),
- PasswordHash = table.Column<string>(type: "TEXT", nullable: true),
- Singleton = table.Column<bool>(type: "INTEGER", nullable: false),
- AutoDeleteAfter = table.Column<string>(type: "TEXT", nullable: true),
- MimeType = table.Column<string>(type: "TEXT", nullable: true)
- },
- constraints: table =>
- {
- table.PrimaryKey("PK_Pastes", x => x.Id);
- });
- }
-
- /// <inheritdoc />
- protected override void Down(MigrationBuilder migrationBuilder)
- {
- migrationBuilder.DropTable(
- name: "Files");
-
- migrationBuilder.DropTable(
- name: "Pastes");
- }
- }
-}