Issue Task Closed

#102866Doctrine DBAL deprecated maximum length methods from `AbstractPlatform`

Stefan Bürk 01/18/24, 15:19 updated 01/30/24, 08:25

Description

Relying on the default and the maximum column lengths provided by the
Doctrine DBAL is deprecated. The following AbstractPlatform methods
and their implementations in specific platforms have been deprecated:

- AbstractPlatform::getCharMaxLength(),
- AbstractPlatform::getVarcharDefaultLength(),
- AbstractPlatform::getVarcharMaxLength(),
- AbstractPlatform::getBinaryDefaultLength(),
- AbstractPlatform::getBinaryMaxLength().

If required by the target platform(s), the column length should be
specified based on the application logic.

[1] https://github.com/doctrine/dbal/blob/3.8.x/UPGRADE.md#deprecated-abstractplatform-methods-that-describe-the-default-and-the-maximum-column-lengths
2 https://github.com/doctrine/dbal/blob/3.8.x/UPGRADE.md#added-runtime-deprecations-for-the-default-string-column-length
3 https://github.com/doctrine/dbal/blob/4.0.x/UPGRADE.md#bc-break-changes-to-handling-binary-fields

Reviews 2