Repository navigation
Laravel Batch v2.5.0
What's Changed
- Fix PHP 8.4 deprecation notices: parameters that default to
nullare now
declared asstring|nullinBatch,BatchInterfaceandHasBatch
by @neoighodaro in #113 - Only touch
updated_atwhen a value actually changes
by @manandhar in #119 updateWithTwoIndex()no longer writes to its two index columns, and uses a
new value formatter by @mohamed-3ly in #122
⚠️ Known issues
These were found by testing this release against v2.4.1 on MySQL/MariaDB,
PostgreSQL and SQLite:
- MySQL / MariaDB:
update()andupdateMultipleCondition()no longer update
updated_atfor rows that change. MySQL appliesSETassignments left to right,
so the "did it change?" check already sees the new values. - All databases: when a column changes from
NULLto a value,updated_at
is not updated. - All databases: an explicit
updated_atpassed for one row is dropped when
another row in the same call gets the automatic timestamp. updateWithTwoIndex():- numeric strings are written without quotes, so leading zeros are lost
('09121234567'is stored as9121234567) on MySQL and SQLite falsefails on MySQL and PostgreSQL, and is stored as an empty string on SQLite- on PostgreSQL every string value fails (
column "..." does not exist)
- numeric strings are written without quotes, so leading zeros are lost
If you use updated_at on MySQL, store numeric strings or booleans with
updateWithTwoIndex(), or use updateWithTwoIndex() on PostgreSQL,
stay on v2.4.1 for now:
composer require mavinoo/laravel-batch:2.4.1
All of these are fixed in the upcoming v3.0.0.
Full Changelog: v2.4.1...v2.5.0