2 years ago

#68899

test-img

Paul

Laravel migration DB statement different result via migration

Using Laravel on connected to a Mysql database. Executing the following directly on the database works as expected, it sets a unique value for the guid.

However, when run in migrations using DB:Statement it sets the guid column to identical values.

UPDATE report_files SET guid=REPLACE(UUID(), '-', '');

Interested to hear any thought on why this might be?

mysql

laravel

database-migration

0 Answers

Your Answer

Accepted video resources