Files
psp_api/prisma/migrations/20260314123604_init/migration.sql
T
2026-03-14 16:26:44 +03:30

13 lines
447 B
SQL

-- 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;