Releases: phpfui/ORM
Releases · phpfui/ORM
Migration primary key fix
Fix Migration::indexExists
V3.0.2 Fix Migration::indexExists
Fixed Composite Primary Keys
- Also added composite primary key test
Full Changelog: V3.0.0...V3.0.1
PostGre support
-
Added support for PostGreSQL
- Migrations for indexes and changing columns will have to be done by custom SQL queries in the Migration class.
-
Now supports SQLite insertOrIgnore and insertOrUpdate for the Record class
-
Added more unit tests
-
Porting to V3 from V2
- \PHPFUI\ORM\Migration::alterColumn takes only 3 parameters and does not rename the column. Use renameColumn instead.
Revert from PostGre porting
V2.0.09 Revert some PostGre porting
PHP 8.5 Support
- PHP 8.5 Support
- Start of PostGreSQL port, but it is not fully supported yet
- Revised unit tests to support different databases for testing
Better length for Decimal fields
- Decimal fields now have the correct length
- Fields with a length of zero pass the maxlength validator
- Updated documentation
Fix default value for empty values
Fixed setting a defaulted field to an empty value that had a different default value.
Default null fields are always set in Record
- Default null fields are always set in Record
- Related Records set from DataObject will return empty Record if id field is not set
Default Nullable Date and Time Fields fix
Nullable Date and Time fields with a CURRENT default should now correctly default to the current time when inserted or updated.