-- DropForeignKey
ALTER TABLE `poses` DROP FOREIGN KEY `poses_device_id_fkey`;

-- DropIndex
DROP INDEX `poses_device_id_fkey` ON `poses`;

-- AlterTable
ALTER TABLE `poses` MODIFY `pos_type` ENUM('PSP', 'MOBILE', 'WEB', 'API') NOT NULL,
    MODIFY `device_id` VARCHAR(191) NULL;

-- AddForeignKey
ALTER TABLE `poses` ADD CONSTRAINT `poses_device_id_fkey` FOREIGN KEY (`device_id`) REFERENCES `devices`(`id`) ON DELETE SET NULL ON UPDATE CASCADE;
