mirror of
https://github.com/nextcloud/server.git
synced 2026-05-25 02:34:12 -04:00
Fix #26085
addOrderBy expects a order expression. For the migration scenario we have column objects. Column objects are not supported by quoteColumnName yet. A column object as order expression is most likely an edgy thing when migration database information. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
This commit is contained in:
parent
6e190b1a55
commit
7259259d1e
1 changed files with 2 additions and 5 deletions
|
|
@ -340,14 +340,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();
|
||||
|
|
|
|||
Loading…
Reference in a new issue