From 04bfb480c8bfada096dd1cdf4e348765912abae4 Mon Sep 17 00:00:00 2001 From: Lee Peuker Date: Sun, 10 Jul 2022 19:59:55 +0200 Subject: [PATCH] wip --- db/migrations/20220708144310_AddMultiUserSetup.php | 1 - 1 file changed, 1 deletion(-) diff --git a/db/migrations/20220708144310_AddMultiUserSetup.php b/db/migrations/20220708144310_AddMultiUserSetup.php index 57035358..fbfea8f1 100644 --- a/db/migrations/20220708144310_AddMultiUserSetup.php +++ b/db/migrations/20220708144310_AddMultiUserSetup.php @@ -88,7 +88,6 @@ public function up() : void FOREIGN KEY (`movie_id`) REFERENCES `movie`(`id`) ON DELETE CASCADE, FOREIGN KEY (`user_id`) REFERENCES `user`(`id`) ON DELETE CASCADE ) COLLATE="utf8mb4_unicode_ci" ENGINE=InnoDB; - INSERT INTO movie_user_rating (movie_id, user_id, rating) (SELECT id, 1, personal_rating FROM movie WHERE personal_rating IS NOT NULL); ALTER TABLE movie DROP COLUMN personal_rating; SQL );