Skip to content

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

refactor: cleanup migration

Marc Seitz9b957264a57b
diff --git a/prisma/migrations/20250430170529_preset_field/migration.sql b/prisma/migrations/20250430170529_preset_field/migration.sql
deleted file mode 100644
index dcfaebc6..00000000
--- a/prisma/migrations/20250430170529_preset_field/migration.sql
+++ /dev/null
@@ -1,10 +0,0 @@
-/*
- Warnings:
-
- - The `expiresIn` column on the `LinkPreset` table would be dropped and recreated. This will lead to data loss if there is data in the column.
-
-*/
--- AlterTable
-ALTER TABLE "LinkPreset" ADD COLUMN "enableScreenshotProtection" BOOLEAN DEFAULT false,
-DROP COLUMN "expiresIn",
-ADD COLUMN "expiresIn" JSONB;
diff --git a/prisma/migrations/20250502000000_add_additional_present_fields/migration.sql b/prisma/migrations/20250502000000_add_additional_present_fields/migration.sql
index 032b52a8..a521b711 100644
--- a/prisma/migrations/20250502000000_add_additional_present_fields/migration.sql
+++ b/prisma/migrations/20250502000000_add_additional_present_fields/migration.sql
@@ -3,6 +3,5 @@ ALTER TABLE "LinkPreset" ADD COLUMN "agreementId" TEXT,
ADD COLUMN "customFields" JSONB,
ADD COLUMN "enableAgreement" BOOLEAN DEFAULT false,
ADD COLUMN "enableCustomFields" BOOLEAN DEFAULT false,
-DROP COLUMN "expiresIn",
-ADD COLUMN "expiresIn" INTEGER;
+ADD COLUMN "enableScreenshotProtection" BOOLEAN DEFAULT false;