Commit 05b64e07 authored by catch's avatar catch

Issue #2843358 by alexpott, mallezie, dawehner: Postgres fail in...

Issue #2843358 by alexpott, mallezie, dawehner: Postgres fail in Drupal\Tests\path\Kernel\Migrate\d6\MigrateUrlAliasTest
parent 054a7a64
......@@ -13,7 +13,11 @@ abstract class UrlAliasBase extends DrupalSqlBase {
* {@inheritdoc}
*/
public function query() {
return $this->select('url_alias', 'ua')->fields('ua');
// The order of the migration is significant since
// \Drupal\Core\Path\AliasStorage::lookupPathAlias() orders by pid before
// returning a result. Postgres does not automatically order by primary key
// therefore we need to add a specific order by.
return $this->select('url_alias', 'ua')->fields('ua')->orderBy('pid');
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment