Skip to content

Commit

Permalink
Merge pull request #42 from leepeuker/add-mulit-user-support
Browse files Browse the repository at this point in the history
wip
  • Loading branch information
leepeuker authored Jul 10, 2022
2 parents 95ec6a6 + 04bfb48 commit e4ed0d2
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion db/migrations/20220708144310_AddMultiUserSetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
);
Expand Down

0 comments on commit e4ed0d2

Please sign in to comment.