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
Improve insertOrUpdate() API consistency across database adapters (#992)
* Improve insertOrUpdate() API consistency across database adapters
- Add deprecation warning for MySQL when conflictColumns is passed (ignored)
- Add RuntimeException for PostgreSQL/SQLite when conflictColumns is missing
- Document database-specific behavior in Table.php and SeedInterface.php
- Add tests for PostgreSQL and SQLite conflict column validation
* Fix use statement ordering in PostgresAdapterTest
* Change MySQL conflictColumns deprecationWarning to trigger_error
Since insertOrUpdate is a new feature, using deprecationWarning()
doesn't make semantic sense. Switch to trigger_error() with
E_USER_WARNING to alert developers that the parameter is ignored
on MySQL without implying the feature will be removed.
* Add documentation for insertOrSkip and insertOrUpdate methods
Documents the insert modes with database-specific behavior caveats,
particularly the MySQL vs PostgreSQL/SQLite differences for upsert.
0 commit comments