Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: change fileSize to bigint
Marc Seitz8e4446207910
diff --git a/prisma/migrations/20250730000000_change_file_size_bigint/migration.sql b/prisma/migrations/20250730000000_change_file_size_bigint/migration.sqlnew file mode 100644index 00000000..40cd6548--- /dev/null+++ b/prisma/migrations/20250730000000_change_file_size_bigint/migration.sql@@ -0,0 +1,3 @@+-- AlterTable+ALTER TABLE "DocumentVersion" ALTER COLUMN "fileSize" SET DATA TYPE BIGINT;+diff --git a/prisma/schema/schema.prisma b/prisma/schema/schema.prismaindex c27ca7d3..cdf4b4ee 100644--- a/prisma/schema/schema.prisma+++ b/prisma/schema/schema.prisma@@ -203,7 +203,7 @@ model DocumentVersion {originalFile String? // This should be a reference to the original file like pptx, xlsx, etc. (S3, Google Cloud Storage, etc.)type String? // This should be a reference to the file type (pdf, docx, etc.)contentType String? // This should be the actual contentType of the file like application/pdf, application/vnd.openxmlformats-officedocument.spreadsheetml.sheet, etc.- fileSize Int? // This should be the size of the file in bytes+ fileSize BigInt? // This should be the size of the file in bytesstorageType DocumentStorageType @default(VERCEL_BLOB)numPages Int? // This should be a reference to the number of pages in the documentisPrimary Boolean @default(false) // Indicates if this is the primary version