1
0
forked from noxious/server

16 lines
517 B
SQL

/*
Warnings:
- You are about to drop the column `hairId` on the `Character` table. All the data in the column will be lost.
*/
-- DropForeignKey
ALTER TABLE `Character` DROP FOREIGN KEY `Character_hairId_fkey`;
-- AlterTable
ALTER TABLE `Character` DROP COLUMN `hairId`,
ADD COLUMN `characterHairId` INTEGER NULL;
-- AddForeignKey
ALTER TABLE `Character` ADD CONSTRAINT `Character_characterHairId_fkey` FOREIGN KEY (`characterHairId`) REFERENCES `CharacterHair`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;