prepareMigration example

protected function executeMigration($migration) {
    if (is_string($migration)) {
      $this->migration = $this->getMigration($migration);
    }
    else {
      $this->migration = $migration;
    }
    if ($this instanceof MigrateDumpAlterInterface) {
      static::migrateDumpAlter($this);
    }

    $this->prepareMigration($this->migration);
    (new MigrateExecutable($this->migration, $this))->import();
  }

  /** * Executes a set of migrations in dependency order. * * @param string[] $ids * Array of migration IDs, in any order. If any of these migrations use a * deriver, the derivatives will be made before execution. */
  protected function executeMigrations(array $ids) {
    
Home | Imprint | This part of the site doesn't use cookies.