You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expected behavior
I would expect the updated field to include the details about the ON UPDATE CURRENT_TIMESTAMP. One way to achieve this would be for the 'updated' field to use the following code:
Details (please complete the following information):
DB: MySQL
DB Version: 8.0.39
Laravel Version: 11.9
PHP Version: 8.3.6
Migrations Generator Version: 7.0.5
Additional context
If we look at the code inside the isOnUpdateCurrentTimestamp function from src/Repositories/MySQLRepository.php, it only checks AND Type = 'timestamp', so it will not get the correct results regarding "onUpdateCurrentTimestamp" for datetime fields.
The text was updated successfully, but these errors were encountered:
Describe the bug
When running the migrate:generate command the resulting migration code does not include the ON UPDATE value
To Reproduce
Steps to reproduce the behavior:
Run
php artisan migrate:generate
Open resulting migration file to find the following code:
Expected behavior
I would expect the updated field to include the details about the ON UPDATE CURRENT_TIMESTAMP. One way to achieve this would be for the 'updated' field to use the following code:
Details (please complete the following information):
Additional context
If we look at the code inside the isOnUpdateCurrentTimestamp function from src/Repositories/MySQLRepository.php, it only checks AND Type = 'timestamp', so it will not get the correct results regarding "onUpdateCurrentTimestamp" for datetime fields.
The text was updated successfully, but these errors were encountered: