summaryrefslogtreecommitdiffstats
path: root/core/Command
diff options
context:
space:
mode:
Diffstat (limited to 'core/Command')
-rw-r--r--core/Command/Db/ConvertType.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/core/Command/Db/ConvertType.php b/core/Command/Db/ConvertType.php
index e4252264dbb..f05bcdef28e 100644
--- a/core/Command/Db/ConvertType.php
+++ b/core/Command/Db/ConvertType.php
@@ -337,14 +337,11 @@ class ConvertType extends Command implements CompletionAwareInterface {
try {
$orderColumns = $table->getPrimaryKeyColumns();
} catch (Exception $e) {
- $orderColumns = [];
- foreach ($table->getColumns() as $column) {
- $orderColumns[] = $column->getName();
- }
+ $orderColumns = $table->getColumns();
}
foreach ($orderColumns as $column) {
- $query->addOrderBy($column);
+ $query->addOrderBy($column->getName());
}
$insertQuery = $toDB->getQueryBuilder();