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
9b0bd881
Commit
9b0bd881
authored
Jun 30, 2012
by
Benjamin Eberlei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove Doctrine\DBAL\Table\Schema#renameColumn()
parent
4eaa44c0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
UPGRADE
UPGRADE
+8
-1
Table.php
lib/Doctrine/DBAL/Schema/Table.php
+3
-5
No files found.
UPGRADE
View file @
9b0bd881
# Upgrade to 2.3
# Upgrade to 2.3
## Doctrine\DBAL\Schema\Table#renameColumn() removed
Doctrine\DBAL\Schema\Table#renameColumn() was removed, because it drops and recreates
the column instead. There is no fix available, because a schema diff
cannot reliably detect if a column was renamed or one column was created
and another one dropped.
## Schema Filter paths
## Schema Filter paths
The Filter Schema assets expression is not wrapped in () anymore for the regexp.
The Filter Schema assets expression is not wrapped in () anymore for the regexp
automatically
.
Before:
Before:
...
...
lib/Doctrine/DBAL/Schema/Table.php
View file @
9b0bd881
...
@@ -270,11 +270,9 @@ class Table extends AbstractAsset
...
@@ -270,11 +270,9 @@ class Table extends AbstractAsset
*/
*/
public
function
renameColumn
(
$oldColumnName
,
$newColumnName
)
public
function
renameColumn
(
$oldColumnName
,
$newColumnName
)
{
{
$column
=
$this
->
getColumn
(
$oldColumnName
);
throw
new
DBALException
(
"Table#renameColumn() was removed, because it drops and recreates "
.
$this
->
dropColumn
(
$oldColumnName
);
"the column instead. There is no fix available, because a schema diff cannot reliably detect if a "
.
"column was renamed or one column was created and another one dropped."
);
$column
->
_setName
(
$newColumnName
);
return
$this
;
}
}
/**
/**
...
...
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