Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
386309c0
Unverified
Commit
386309c0
authored
Jul 07, 2020
by
Sergei Morozov
Committed by
GitHub
Jul 07, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4153 from morozov/remove-deprecated
Remove deprecated components
parents
98c23feb
f526a8e8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
53 deletions
+8
-53
UPGRADE.md
UPGRADE.md
+8
-0
DBALException.php
src/DBALException.php
+0
-23
AbstractPlatform.php
src/Platforms/AbstractPlatform.php
+0
-15
OraclePlatform.php
src/Platforms/OraclePlatform.php
+0
-15
No files found.
UPGRADE.md
View file @
386309c0
# Upgrade to 3.0
# Upgrade to 3.0
## BC BREAK: Removed DBALException factory methods
The following factory methods of the DBALException class have been removed:
1.
`DBALException::invalidPlatformSpecified()`
.
2.
`DBALException::invalidPdoInstance()`
.
## BC BREAK: PDO-based driver classes are moved under the PDO namespace
## BC BREAK: PDO-based driver classes are moved under the PDO namespace
The following classes have been renamed:
The following classes have been renamed:
...
@@ -134,6 +141,7 @@ The `Doctrine\DBAL\Driver::getName()` has been removed.
...
@@ -134,6 +141,7 @@ The `Doctrine\DBAL\Driver::getName()` has been removed.
*
Removed
`MysqlSessionInit`
listener.
*
Removed
`MysqlSessionInit`
listener.
*
Removed
`MysqlPlatform::getCollationFieldDeclaration()`
.
*
Removed
`MysqlPlatform::getCollationFieldDeclaration()`
.
*
Removed
`AbstractPlatform::getIdentityColumnNullInsertSQL()`
.
*
Removed
`AbstractPlatform::getIdentityColumnNullInsertSQL()`
.
*
Removed
`AbstractPlatform::fixSchemaElementName()`
.
*
Removed
`Table::addUnnamedForeignKeyConstraint()`
and
`Table::addNamedForeignKeyConstraint()`
.
*
Removed
`Table::addUnnamedForeignKeyConstraint()`
and
`Table::addNamedForeignKeyConstraint()`
.
*
Removed
`Table::renameColumn()`
.
*
Removed
`Table::renameColumn()`
.
*
Removed
`SQLParserUtils::getPlaceholderPositions()`
.
*
Removed
`SQLParserUtils::getPlaceholderPositions()`
.
...
...
src/DBALException.php
View file @
386309c0
...
@@ -28,16 +28,6 @@ class DBALException extends Exception
...
@@ -28,16 +28,6 @@ class DBALException extends Exception
return
new
self
(
sprintf
(
"Operation '%s' is not supported by platform."
,
$method
));
return
new
self
(
sprintf
(
"Operation '%s' is not supported by platform."
,
$method
));
}
}
/**
* @deprecated Use {@link invalidPlatformType()} instead.
*/
public
static
function
invalidPlatformSpecified
()
:
self
{
return
new
self
(
"Invalid 'platform' option specified, need to give an instance of "
.
AbstractPlatform
::
class
.
'.'
);
}
/**
/**
* @param mixed $invalidPlatform
* @param mixed $invalidPlatform
*/
*/
...
@@ -82,19 +72,6 @@ class DBALException extends Exception
...
@@ -82,19 +72,6 @@ class DBALException extends Exception
);
);
}
}
/**
* @deprecated Passing a PDO instance in connection parameters is deprecated.
*
* @return DBALException
*/
public
static
function
invalidPdoInstance
()
{
return
new
self
(
"The 'pdo' option was used in DriverManager::getConnection() but no "
.
'instance of PDO was given.'
);
}
/**
/**
* @param string|null $url The URL that was provided in the connection parameters (if any).
* @param string|null $url The URL that was provided in the connection parameters (if any).
*
*
...
...
src/Platforms/AbstractPlatform.php
View file @
386309c0
...
@@ -3380,21 +3380,6 @@ abstract class AbstractPlatform
...
@@ -3380,21 +3380,6 @@ abstract class AbstractPlatform
return
$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.
* Maximum length of any given database identifier, like tables or column names.
*
*
...
...
src/Platforms/OraclePlatform.php
View file @
386309c0
...
@@ -1088,21 +1088,6 @@ SQL
...
@@ -1088,21 +1088,6 @@ SQL
return
'1900-01-01 H:i:s'
;
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}
* {@inheritDoc}
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment