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