magma icon indicating copy to clipboard operation
magma copied to clipboard

Update schema.init.sh

Open brokep opened this issue 2 years ago • 0 comments

SET SQL_SAFE_UPDATES = 0;: This allows updates and deletes without any restrictions.

Given that you're running a script to initialize a database, it's common to disable safe updates temporarily, but keep in mind that this can be risky in a production environment if not handled carefully.

both schema init and schema reset fail without SET SQL_SAFE_UPDATES = 0;:

brokep avatar Sep 05 '23 20:09 brokep