MySQLDefaultValueDeclarationSQLOverrideTrait
not part of Public Core API.
Table of Contents
Methods
- getDefaultValueDeclarationSQL() : string
- Obtains DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE.
Methods
getDefaultValueDeclarationSQL()
Obtains DBMS specific SQL code portion needed to set a default value declaration to be used in statements like CREATE TABLE.
public
getDefaultValueDeclarationSQL(array<string|int, mixed> $column) : string
Oracle MySQL does not support default values on TEXT/BLOB columns until 8.0.13. Doctrine DBAL 4.x supports earlier version of MySQL and decided to unset the column default value for TextType and BlobType generally in the MySQL platform variants. This trait reintroduces the AbstractPlatform implementation to be used in the TYPO3 platform overrides for MySQL to remove this limitation and allow the use of default value as expressions.
Parameters
- $column : array<string|int, mixed>
-
The column definition array.
Tags
Return values
string —DBMS specific SQL code portion needed to set a default value.