WIP
This commit is contained in:
+50
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
Warnings:
|
||||
|
||||
- A unique constraint covering the columns `[tourId,ticketId]` on the table `TourFile` will be added. If there are existing duplicate values, this will fail.
|
||||
- Added the required column `approvalRequirement` to the `Ticket` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `approvalStatus` to the `Ticket` table without a default value. This is not possible if the table is not empty.
|
||||
- Added the required column `stage` to the `Ticket` table without a default value. This is not possible if the table is not empty.
|
||||
|
||||
*/
|
||||
-- DropIndex
|
||||
DROP INDEX "TourFile_tourId_ticketId_idx";
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Patient" ADD COLUMN "insuranceNo" TEXT;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "PatientSource" ADD COLUMN "stammVersNr" TEXT;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "PatientStaging" ADD COLUMN "insuranceNo" TEXT;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Ticket" ADD COLUMN "approvalFullRequestMessageId" TEXT,
|
||||
ADD COLUMN "approvalIsOverriden" BOOLEAN NOT NULL DEFAULT false,
|
||||
ADD COLUMN "approvalLastInteractionAt" TIMESTAMP(3),
|
||||
ADD COLUMN "approvalPreInquiryMessageId" TEXT,
|
||||
ADD COLUMN "approvalRecipient" TEXT,
|
||||
ADD COLUMN "approvalReminderCount" INTEGER NOT NULL DEFAULT 0,
|
||||
ADD COLUMN "approvalRequestedAt" TIMESTAMP(3),
|
||||
ADD COLUMN "approvalRequirement" TEXT NOT NULL,
|
||||
ADD COLUMN "approvalStatus" TEXT NOT NULL,
|
||||
ADD COLUMN "hasDigitalTransportDocument" BOOLEAN NOT NULL DEFAULT false,
|
||||
ADD COLUMN "hasPhysicalTransportDocument" BOOLEAN NOT NULL DEFAULT false,
|
||||
ADD COLUMN "patientId" UUID,
|
||||
ADD COLUMN "stage" TEXT NOT NULL,
|
||||
ADD COLUMN "updatedAt" TIMESTAMP(3),
|
||||
ALTER COLUMN "id" DROP DEFAULT,
|
||||
ALTER COLUMN "currentState" DROP NOT NULL;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "Tour" ADD COLUMN "insuranceNo" TEXT;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "TourSource" ADD COLUMN "stammVersNr" TEXT;
|
||||
|
||||
-- AlterTable
|
||||
ALTER TABLE "TourStaging" ADD COLUMN "insuranceNo" TEXT;
|
||||
|
||||
-- CreateIndex
|
||||
CREATE UNIQUE INDEX "TourFile_tourId_ticketId_key" ON "TourFile"("tourId", "ticketId");
|
||||
Reference in New Issue
Block a user