diff --git a/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php b/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php index 742832f00..ef30a2601 100644 --- a/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php +++ b/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php @@ -1772,6 +1772,16 @@ abstract class AbstractPlatform return $schemaElementName; } + /** + * Maximum length of any given databse identifier, like tables or column names. + * + * @return int + */ + public function getMaxIdentifierLength() + { + return 63; + } + /** * Get the insert sql for an empty insert statement * diff --git a/lib/Doctrine/DBAL/Platforms/OraclePlatform.php b/lib/Doctrine/DBAL/Platforms/OraclePlatform.php index 8c9a39e1f..1453d30eb 100644 --- a/lib/Doctrine/DBAL/Platforms/OraclePlatform.php +++ b/lib/Doctrine/DBAL/Platforms/OraclePlatform.php @@ -603,6 +603,16 @@ END;'; return $schemaElementName; } + /** + * Maximum length of any given databse identifier, like tables or column names. + * + * @return int + */ + public function getMaxIdentifierLength() + { + return 30; + } + /** * Whether the platform supports sequences. * diff --git a/lib/Doctrine/DBAL/Schema/AbstractAsset.php b/lib/Doctrine/DBAL/Schema/AbstractAsset.php index 14a3bf932..60acfc276 100644 --- a/lib/Doctrine/DBAL/Schema/AbstractAsset.php +++ b/lib/Doctrine/DBAL/Schema/AbstractAsset.php @@ -35,10 +35,6 @@ namespace Doctrine\DBAL\Schema; */ abstract class AbstractAsset { - const CASE_UPPER = "upper"; - const CASE_LOWER = "lower"; - const CASE_KEEP = "keep"; - /** * @var string */