Files
documenso/packages/prisma/migrations/20250505042902_jkljlk/migration.sql
David Nguyen 7abfc9e271 fix: wip
2025-05-07 15:03:20 +10:00

18 lines
791 B
SQL

/*
Warnings:
- You are about to drop the column `teamId` on the `OrganisationMemberInvite` table. All the data in the column will be lost.
- You are about to drop the column `teamRole` on the `OrganisationMemberInvite` table. All the data in the column will be lost.
- A unique constraint covering the columns `[teamId,organisationGroupId]` on the table `TeamGroup` will be added. If there are existing duplicate values, this will fail.
*/
-- DropForeignKey
ALTER TABLE "OrganisationMemberInvite" DROP CONSTRAINT "OrganisationMemberInvite_teamId_fkey";
-- AlterTable
ALTER TABLE "OrganisationMemberInvite" DROP COLUMN "teamId",
DROP COLUMN "teamRole";
-- CreateIndex
CREATE UNIQUE INDEX "TeamGroup_teamId_organisationGroupId_key" ON "TeamGroup"("teamId", "organisationGroupId");