Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

feat: add enum migration

Marc Seitz0d61a69b1122
diff --git a/prisma/migrations/20240221042933_add_document_storage_type_enum/migration.sql b/prisma/migrations/20240221042933_add_document_storage_type_enum/migration.sql
new file mode 100644
index 00000000..eff6b30a
--- /dev/null
+++ b/prisma/migrations/20240221042933_add_document_storage_type_enum/migration.sql
@@ -0,0 +1,11 @@
+-- CreateEnum
+CREATE TYPE "DocumentStorageType" AS ENUM ('S3_PATH', 'VERCEL_BLOB');
+
+-- AlterTable
+ALTER TABLE "Document" ADD COLUMN "storageType" "DocumentStorageType" NOT NULL DEFAULT 'VERCEL_BLOB';
+
+-- AlterTable
+ALTER TABLE "DocumentPage" ADD COLUMN "storageType" "DocumentStorageType" NOT NULL DEFAULT 'VERCEL_BLOB';
+
+-- AlterTable
+ALTER TABLE "DocumentVersion" ADD COLUMN "storageType" "DocumentStorageType" NOT NULL DEFAULT 'VERCEL_BLOB';