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
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.
Being adding SchemaDialect::columnDefinitionSql (#18248)
In order to remove duplication between migrations and cakephp/database,
we need a method to generate column SQL fragments for DDL operations.
The current method in SchemaDialect isn't well suited for this as it
requires an `TableSchema` instance which we don't always have in
migrations.
This new with consumes the output of describeColumns() which migrations
will also start using. I've also added `onUpdate` to `TableSchema`
reflection for datetime/timestamp columns so that schema generation is
consistent between the two APIs. These changes only contain an
implementation for MySQL. Other drivers will be implemented in follow up
pull requests.
* Fix phpstan
* Add sqlite implementation of columnDefinitionSql
Fix a regression in PostgresSchemaDialect (#18200)
When doing cleanup on the schema reflection methods, I introduced
a regression that was caught by migrations tests.