-- DropForeignKey
ALTER TABLE `attachment` DROP FOREIGN KEY `Attachment_uploaderId_fkey`;

-- DropIndex
DROP INDEX `Attachment_uploaderId_fkey` ON `attachment`;

-- AlterTable
ALTER TABLE `attachment` MODIFY `uploaderId` VARCHAR(191) NULL;

-- AddForeignKey
ALTER TABLE `Attachment` ADD CONSTRAINT `Attachment_uploaderId_fkey` FOREIGN KEY (`uploaderId`) REFERENCES `User`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
