| Methods |
public
|
listTableNames()
{@inheritDoc}
|
#
|
public
|
listTables()
{@inheritDoc}
|
#
|
public
|
listTableDetails($name)
{@inheritDoc}
Deprecated
Use {@see introspectTable()} instead.
Overrides
|
#
|
public
|
listTableColumns($table, $database = null)
{@inheritDoc}
Parameters
| $table |
The name of the table.
|
Overrides
|
#
|
public
|
listTableIndexes($table)
{@inheritDoc}
Parameters
| $table |
The name of the table.
|
Overrides
|
#
|
public
|
listTableForeignKeys($table, $database = null)
{@inheritDoc}
Parameters
| $table |
The name of the table.
|
Overrides
|
#
|
protected
|
_getPortableViewDefinition($view)
{@inheritDoc}
|
#
|
protected
|
_getPortableTableDefinition($table)
{@inheritDoc}
|
#
|
protected
|
_getPortableTableIndexesList($tableIndexes, $tableName = null)
{@inheritDoc}
|
#
|
protected
|
_getPortableDatabaseDefinition($database)
{@inheritDoc}
|
#
|
protected
|
_getPortableTableColumnDefinition($tableColumn)
{@inheritDoc}
|
#
|
private
|
expectedDbType(string $type, mixed[] $tableColumn): string
Returns the database data type for a given doctrine type and column
Returns the database data type for a given doctrine type and column
Note that for data types that depend on length where length is not part of the column definition
and therefore the $tableColumn['length'] will not be set, for example TEXT (which could be LONGTEXT,
MEDIUMTEXT) or BLOB (LONGBLOB or TINYBLOB), the expectedDbType cannot be inferred exactly, merely
the default type.
This method is intended to be used to determine underlying database type where doctrine type is
inferred from a DC2Type comment.
|
#
|
private
|
getMariaDb1027ColumnDefault(MariaDb1027Platform $platform, string|null $columnDefault): ?string
Return Doctrine/Mysql-compatible column default values for MariaDB 10.2.7+ servers.
Return Doctrine/Mysql-compatible column default values for MariaDB 10.2.7+ servers.
- Since MariaDb 10.2.7 column defaults stored in information_schema are now quoted
to distinguish them from expressions (see MDEV-10134).
- CURRENT_TIMESTAMP, CURRENT_TIME, CURRENT_DATE are stored in information_schema
as current_timestamp(), currdate(), currtime()
- Quoted 'NULL' is not enforced by Maria, it is technically possible to have
null in some circumstances (see https://jira.mariadb.org/browse/MDEV-14053)
- ' is always stored as '' in information_schema (normalized)
Parameters
| $columnDefault |
default value as stored in information_schema for MariaDB >= 10.2.7
|
|
#
|
protected
|
_getPortableTableForeignKeysList($tableForeignKeys)
{@inheritDoc}
|
#
|
protected
|
_getPortableTableForeignKeyDefinition($tableForeignKey): ForeignKeyConstraint
{@inheritDoc}
|
#
|
public
|
createComparator(): Comparator
|
#
|
protected
|
selectTableNames(string $databaseName): Result
Selects names of tables in the specified database.
Selects names of tables in the specified database.
Overrides
|
#
|
protected
|
selectTableColumns(string $databaseName, ?string $tableName = null): Result
Selects definitions of table columns in the specified database. If the table name is specified, narrows down
the…
Selects definitions of table columns in the specified database. If the table name is specified, narrows down
the selection to this table.
Overrides
|
#
|
protected
|
selectIndexColumns(string $databaseName, ?string $tableName = null): Result
Selects definitions of index columns in the specified database. If the table name is specified, narrows down
the…
Selects definitions of index columns in the specified database. If the table name is specified, narrows down
the selection to this table.
Overrides
|
#
|
protected
|
selectForeignKeyColumns(string $databaseName, ?string $tableName = null): Result
Selects definitions of foreign key columns in the specified database. If the table name is specified,
narrows down the…
Selects definitions of foreign key columns in the specified database. If the table name is specified,
narrows down the selection to this table.
Overrides
|
#
|
protected
|
fetchTableOptionsByTable(string $databaseName, ?string $tableName = null): array
{@inheritDoc}
|
#
|
private
|
parseCreateOptions(?string $string): string[]|true[]
|
#
|