Add functions to commission form
This commit is contained in:
30
prisma/migrations/20260101072657_com_4/migration.sql
Normal file
30
prisma/migrations/20260101072657_com_4/migration.sql
Normal file
@ -0,0 +1,30 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- You are about to drop the column `mimeType` on the `CommissionRequestFile` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `objectKey` on the `CommissionRequestFile` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `originalName` on the `CommissionRequestFile` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `sizeBytes` on the `CommissionRequestFile` table. All the data in the column will be lost.
|
||||
- You are about to drop the column `sortIndex` on the `CommissionRequestFile` table. All the data in the column will be lost.
|
||||
- A unique constraint covering the columns `[fileKey]` on the table `CommissionRequestFile` will be added. If there are existing duplicate values, this will fail.
|
||||
- Added the required column `fileKey` to the `CommissionRequestFile` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `fileSize` to the `CommissionRequestFile` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `fileType` to the `CommissionRequestFile` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `originalFile` to the `CommissionRequestFile` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `uploadDate` to the `CommissionRequestFile` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- AlterTable
|
||||
ALTER TABLE "CommissionRequestFile" DROP COLUMN "mimeType",
|
||||
DROP COLUMN "objectKey",
|
||||
DROP COLUMN "originalName",
|
||||
DROP COLUMN "sizeBytes",
|
||||
DROP COLUMN "sortIndex",
|
||||
ADD COLUMN "fileKey" TEXT NOT NULL,
|
||||
ADD COLUMN "fileSize" INTEGER NOT NULL,
|
||||
ADD COLUMN "fileType" TEXT NOT NULL,
|
||||
ADD COLUMN "originalFile" TEXT NOT NULL,
|
||||
ADD COLUMN "uploadDate" TIMESTAMP(3) NOT NULL;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "CommissionRequestFile_fileKey_key" ON "CommissionRequestFile"("fileKey");
|
||||
Reference in New Issue
Block a user