You are here

protected function DrupalFile6Migration::query in Drupal-to-Drupal data migration 7.2

Implements DrupalMigration::query().

Return value

QueryConditionInterface|SelectQueryInterface

Overrides DrupalMigration::query

1 method overrides DrupalFile6Migration::query()
DrupalPicture6Migration::query in d6/file.inc
We override the file query to get the pictures from the user table.

File

d6/file.inc, line 70
Implementation of DrupalFileMigration for Drupal 6 sources.

Class

DrupalFile6Migration
@file Implementation of DrupalFileMigration for Drupal 6 sources.

Code

protected function query() {
  $query = Database::getConnection('default', $this->sourceConnection)
    ->select('files', 'f')
    ->fields('f')
    ->orderBy($this->newOnly ? 'f.fid' : 'f.timestamp');
  return $query;
}