/* Warnings: - You are about to drop the column `InvitedBy` on the `session` table. All the data in the column will be lost. - Added the required column `userId` to the `Session` table without a default value. This is not possible if the table is not empty. */ -- DropForeignKey ALTER TABLE `session` DROP FOREIGN KEY `Session_InvitedBy_fkey`; -- AlterTable ALTER TABLE `session` DROP COLUMN `InvitedBy`, ADD COLUMN `userId` VARCHAR(191) NOT NULL; -- AddForeignKey ALTER TABLE `Session` ADD CONSTRAINT `Session_userId_fkey` FOREIGN KEY (`userId`) REFERENCES `User`(`id`) ON DELETE CASCADE ON UPDATE CASCADE;