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
dd5347b0
Commit
dd5347b0
authored
Oct 15, 2007
by
Jonathan.Wage
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix to alter table command.
parent
41f8d264
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Process.php
lib/Doctrine/Migration/Process.php
+4
-4
No files found.
lib/Doctrine/Migration/Process.php
View file @
dd5347b0
...
...
@@ -59,7 +59,7 @@ class Doctrine_Migration_Process
foreach
(
$tables
as
$table
)
{
$conn
=
$this
->
getConnection
(
$table
[
'newTableName'
]);
$conn
->
export
->
alterTable
(
$table
[
'oldTableName'
],
array
(
'name'
=>
$table
[
'newTableName'
])
,
true
);
$conn
->
export
->
alterTable
(
$table
[
'oldTableName'
],
array
(
'name'
=>
$table
[
'newTableName'
]));
}
}
...
...
@@ -72,7 +72,7 @@ class Doctrine_Migration_Process
$options
=
$column
[
'options'
];
$options
[
'type'
]
=
$column
[
'type'
];
$conn
->
export
->
alterTable
(
$column
[
'tableName'
],
array
(
'add'
=>
array
(
$column
[
'columnName'
]
=>
$options
))
,
true
);
$conn
->
export
->
alterTable
(
$column
[
'tableName'
],
array
(
'add'
=>
array
(
$column
[
'columnName'
]
=>
$options
)));
}
}
...
...
@@ -81,7 +81,7 @@ class Doctrine_Migration_Process
foreach
(
$columns
as
$column
)
{
$conn
=
$this
->
getConnection
(
$column
[
'tableName'
]);
$conn
->
export
->
alterTable
(
$column
[
'tableName'
],
array
(
'rename'
=>
array
(
$column
[
'oldColumnName'
]
=>
array
(
'name'
=>
$column
[
'newColumnName'
])))
,
true
);
$conn
->
export
->
alterTable
(
$column
[
'tableName'
],
array
(
'rename'
=>
array
(
$column
[
'oldColumnName'
]
=>
array
(
'name'
=>
$column
[
'newColumnName'
]))));
}
}
...
...
@@ -94,7 +94,7 @@ class Doctrine_Migration_Process
$options
=
$column
[
'options'
];
$options
[
'type'
]
=
$column
[
'type'
];
$conn
->
export
->
alterTable
(
$column
[
'tableName'
],
array
(
'change'
=>
array
(
$column
[
'columnName'
]
=>
array
(
'definition'
=>
$options
)))
,
true
);
$conn
->
export
->
alterTable
(
$column
[
'tableName'
],
array
(
'change'
=>
array
(
$column
[
'columnName'
]
=>
array
(
'definition'
=>
$options
))));
}
}
...
...
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