Skip to content

Commit

Permalink
Remove AbstractPlatform::fixSchemaElementName()
Browse files Browse the repository at this point in the history
  • Loading branch information
morozov committed Jul 7, 2020
1 parent ffc756f commit 074dcf8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 30 deletions.
1 change: 1 addition & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ The `Doctrine\DBAL\Driver::getName()` has been removed.
* Removed `MysqlSessionInit` listener.
* Removed `MysqlPlatform::getCollationFieldDeclaration()`.
* Removed `AbstractPlatform::getIdentityColumnNullInsertSQL()`.
* Removed `AbstractPlatform::fixSchemaElementName()`.
* Removed `Table::addUnnamedForeignKeyConstraint()` and `Table::addNamedForeignKeyConstraint()`.
* Removed `Table::renameColumn()`.
* Removed `SQLParserUtils::getPlaceholderPositions()`.
Expand Down
15 changes: 0 additions & 15 deletions src/Platforms/AbstractPlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -3380,21 +3380,6 @@ public function getSQLResultCasing($column)
return $column;
}

/**
* Makes any fixes to a name of a schema element (table, sequence, ...) that are required
* by restrictions of the platform, like a maximum length.
*
* @deprecated
*
* @param string $schemaElementName
*
* @return string
*/
public function fixSchemaElementName($schemaElementName)
{
return $schemaElementName;
}

/**
* Maximum length of any given database identifier, like tables or column names.
*
Expand Down
15 changes: 0 additions & 15 deletions src/Platforms/OraclePlatform.php
Original file line number Diff line number Diff line change
Expand Up @@ -1088,21 +1088,6 @@ public function getTimeFormatString()
return '1900-01-01 H:i:s';
}

/**
* {@inheritDoc}
*
* @deprecated
*/
public function fixSchemaElementName($schemaElementName)
{
if (strlen($schemaElementName) > 30) {
// Trim it
return substr($schemaElementName, 0, 30);
}

return $schemaElementName;
}

/**
* {@inheritDoc}
*/
Expand Down

0 comments on commit 074dcf8

Please sign in to comment.