2025-05-17 |
Implement columnDefinitionSql for postgres (#18325)
* Implement columnDefinitionSql() for postgres. Move and refactor to
expose schema generation with lower level data.
* Implement columnDefinitionSql for sqlserver
* Only automatically promote id columns to autoIncrement.
* Restore condition on id => autoIncrement convention
Don't convert all single column integer primary keys to be
autoincrement. |
2025-05-17 |
Preserve postgres primary key names (#18614)
* Preserve postgres primary key names
We shouldn't discard primary key names when reflecting schema from
postgres as we can preserve the constraint name. This is necessary for
migrations compatibility.
* Fix tests
* Make an additive change that doesn't impact backwards compat |
2025-05-17 |
Merge branch '5.x' into 5.next |
2025-05-17 |
Fix primary key reflection in sqlserver (#18655)
Migrations requires primary key names to be preserved in sqlserver.
Follow the pattern used in postgres to retain backwards compatibility
with cakephp/database (name = primary) and preserve the key's actual
name. |
2025-05-17 |
5.next Add rector to CI stan pipeline (#18625)
* Add rector to CI.
* Run composer rector. |
2025-05-17 |
Drop psalm |
2025-05-17 |
Update phpstan |
2025-05-17 |
Merge branch '5.x' into 5.next |
2025-05-17 |
Fix sqlite foreign key reflection (#18383)
* Fix sqlite foreign key reflection
The `pragma_foreign_key_list` view results are sometimes empty when
working with migrations. Using the pragma operator works more
consistently.
* Improve regex |
2025-05-17 |
Merge remote-tracking branch 'origin/5.x' into 5.next |
2025-05-17 |
Update composer.json for split packages.
This should fix running phpstan for the split packages |
2025-05-17 |
Fix reflection of primary keys
When a primary key exists on a string column type without a default,
sqlite will return that primary key in index_info(). When we get that
primary key, we don't need to scan the columns.
This improves efficency and fixes regressions that would occur in
migrations. |
2025-05-17 |
Small cleanups and typo fixes. |
2025-05-17 |
Raise 5.3 PHP min to 8.2 (#18341)
* Raise 5.3 PHP min to 8.2
* Drop phpunit 10.
* Raise 5.3 PHP min to 8.2 in splits. |
2025-05-17 |
Merge branch '5.x' into 5.next |
2025-05-17 |
Fix sqlite foreign key reflection (#18383)
* Fix sqlite foreign key reflection
The `pragma_foreign_key_list` view results are sometimes empty when
working with migrations. Using the pragma operator works more
consistently.
* Improve regex |
2025-05-17 |
Preserve postgres primary key names (#18614)
* Preserve postgres primary key names
We shouldn't discard primary key names when reflecting schema from
postgres as we can preserve the constraint name. This is necessary for
migrations compatibility.
* Fix tests
* Make an additive change that doesn't impact backwards compat |
2025-05-17 |
Update phpstan |
2025-05-17 |
Fix primary key reflection in sqlserver (#18655)
Migrations requires primary key names to be preserved in sqlserver.
Follow the pattern used in postgres to retain backwards compatibility
with cakephp/database (name = primary) and preserve the key's actual
name. |
2025-04-26 |
Fix usage of deprecated method in ReconnectStrategy.php |
2025-04-24 |
Small cleanups and typo fixes. |
2025-04-24 |
Fix reflection of primary keys
When a primary key exists on a string column type without a default,
sqlite will return that primary key in index_info(). When we get that
primary key, we don't need to scan the columns.
This improves efficency and fixes regressions that would occur in
migrations. |