diff --git a/UPGRADE.md b/UPGRADE.md index 332e8d4fd3c..3fd5889bb9a 100644 --- a/UPGRADE.md +++ b/UPGRADE.md @@ -289,6 +289,14 @@ The following schema introspection methods have been deprecated: - `AbstractPlatform::getListTableIndexesSQL()`, - `AbstractPlatform::getListTableForeignKeysSQL()`. +## `AbstractPlatform` schema introspection methods made internal + +The following schema introspection methods have been marked as internal: + +- `AbstractPlatform::getListDatabasesSQL()`, +- `AbstractPlatform::getListSequencesSQL()`, +- `AbstractPlatform::getListViewsSQL()`. + The queries used for schema introspection are an internal implementation detail of the DBAL. ## Deprecated `collate` option for MySQL diff --git a/src/Platforms/AbstractMySQLPlatform.php b/src/Platforms/AbstractMySQLPlatform.php index da95fe4167d..51c71166c9c 100644 --- a/src/Platforms/AbstractMySQLPlatform.php +++ b/src/Platforms/AbstractMySQLPlatform.php @@ -143,6 +143,8 @@ public function getLengthExpression($column) /** * {@inheritDoc} + * + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. */ public function getListDatabasesSQL() { @@ -182,6 +184,8 @@ public function getListTableIndexesSQL($table, $database = null) /** * {@inheritDoc} + * + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. */ public function getListViewsSQL($database) { diff --git a/src/Platforms/AbstractPlatform.php b/src/Platforms/AbstractPlatform.php index aeca28fa067..1e127f8ccd9 100644 --- a/src/Platforms/AbstractPlatform.php +++ b/src/Platforms/AbstractPlatform.php @@ -3444,6 +3444,8 @@ protected function _getTransactionIsolationLevelSQL($level) } /** + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. + * * @return string * * @throws Exception If not supported on this platform. @@ -3475,6 +3477,8 @@ public function getListNamespacesSQL() } /** + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. + * * @param string $database * * @return string @@ -3548,6 +3552,8 @@ public function getListUsersSQL() /** * Returns the SQL to list all views of a database or user. * + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. + * * @param string $database * * @return string diff --git a/src/Platforms/DB2Platform.php b/src/Platforms/DB2Platform.php index 015e0e8110f..f847c090637 100644 --- a/src/Platforms/DB2Platform.php +++ b/src/Platforms/DB2Platform.php @@ -396,6 +396,8 @@ public function getListTablesSQL() /** * {@inheritDoc} + * + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. */ public function getListViewsSQL($database) { diff --git a/src/Platforms/OraclePlatform.php b/src/Platforms/OraclePlatform.php index e7a36b14263..cf0ae5bf839 100644 --- a/src/Platforms/OraclePlatform.php +++ b/src/Platforms/OraclePlatform.php @@ -415,6 +415,8 @@ public function getClobTypeDeclarationSQL(array $column) /** * {@inheritDoc} + * + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. */ public function getListDatabasesSQL() { @@ -423,6 +425,8 @@ public function getListDatabasesSQL() /** * {@inheritDoc} + * + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. */ public function getListSequencesSQL($database) { @@ -518,6 +522,8 @@ public function getListTablesSQL() /** * {@inheritDoc} + * + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. */ public function getListViewsSQL($database) { diff --git a/src/Platforms/PostgreSQLPlatform.php b/src/Platforms/PostgreSQLPlatform.php index 0abee066c0d..9f65b329190 100644 --- a/src/Platforms/PostgreSQLPlatform.php +++ b/src/Platforms/PostgreSQLPlatform.php @@ -266,6 +266,8 @@ public function hasNativeGuidType() /** * {@inheritDoc} + * + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. */ public function getListDatabasesSQL() { @@ -294,6 +296,8 @@ public function getListNamespacesSQL() /** * {@inheritDoc} + * + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. */ public function getListSequencesSQL($database) { @@ -326,6 +330,8 @@ public function getListTablesSQL() /** * {@inheritDoc} + * + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. */ public function getListViewsSQL($database) { diff --git a/src/Platforms/SQLServerPlatform.php b/src/Platforms/SQLServerPlatform.php index 2d068886382..4c8f72b8bfe 100644 --- a/src/Platforms/SQLServerPlatform.php +++ b/src/Platforms/SQLServerPlatform.php @@ -190,6 +190,8 @@ public function getCreateSequenceSQL(Sequence $sequence): string /** * {@inheritdoc} + * + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. */ public function getListSequencesSQL($database) { @@ -1040,6 +1042,8 @@ public function getListTableIndexesSQL($table, $database = null) /** * {@inheritDoc} + * + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. */ public function getListViewsSQL($database) { @@ -1137,6 +1141,8 @@ public function getConcatExpression() /** * {@inheritDoc} + * + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. */ public function getListDatabasesSQL() { diff --git a/src/Platforms/SqlitePlatform.php b/src/Platforms/SqlitePlatform.php index 2459751952f..66db97cf59e 100644 --- a/src/Platforms/SqlitePlatform.php +++ b/src/Platforms/SqlitePlatform.php @@ -573,6 +573,8 @@ public function getListTablesSQL() /** * {@inheritDoc} + * + * @internal The method should be only used from within the {@see AbstractSchemaManager} class hierarchy. */ public function getListViewsSQL($database) {