The previous 'apostrophe' bug we had before is now fixed! Users can use special characters (even ') in their reviews
Username information is now being passed to our views via the '/home' and '/profile/reviews' routes
I reset the database to fix an error that I had forgotten about when designing the database
Before, if a user had posted reviews to the site and then tried to delete their account, a Foreign Key constraint error would occur. This is because the reviews table relies on the users table. I added "ON DELETE CASCADE" to the foreign key constraint in our reviews table and now this problem is gone. When a user deletes their account, all of their reviews will also be successfully deleted. This is why I had to reset the database though.
What's New In This PR:
I reset the database to fix an error that I had forgotten about when designing the database Before, if a user had posted reviews to the site and then tried to delete their account, a Foreign Key constraint error would occur. This is because the reviews table relies on the users table. I added "ON DELETE CASCADE" to the foreign key constraint in our reviews table and now this problem is gone. When a user deletes their account, all of their reviews will also be successfully deleted. This is why I had to reset the database though.