public function migrateModule(ModuleContainerInterface $module)
    {
        $path = $module->getPath(['database', 'migrations']);
        $files = $this->migrator->getMigrationFiles($path);

        // Once we grab all of the migration files for the path, we will compare them
        // against the migrations that have already been run for this package then
        // run each of the outstanding migrations against a database connection.
        $ran = $this->migrator->getRepository()->getRan();

        $migrations = array_diff($files, $ran);
        $this->migrator->requireFiles($path, $migrations);

        foreach ($migrations as $migration) {
            $this->migrations[] = $migration;
        }

        return $this;
    }
public function migrateModule(ModuleContainerInterface $module)
    {
        $path = $module->getPath(['database', 'migrations']);
        $files = $this->migrator->getMigrationFiles($path);

        // Once we grab all of the migration files for the path, we will compare them
        // against the migrations that have already been run for this package then
        // run each of the outstanding migrations against a database connection.
        $ran = $this->migrator->getRepository()->getRan();

        $migrations = array_diff($files, $ran);
        $this->migrator->requireFiles($path, $migrations);

        foreach ($migrations as $migration) {
            $this->migrations[] = $migration;
        }

        return $this;
    }
public function migrateModule ( ModuleContainerInterface $ module ) { $ path = $ module -> getPath ( [ 'database' , 'migrations' ] ) ; $ files = $ this -> migrator -> getMigrationFiles ( $ path ) ; // Once we grab all of the migration files for the path, we will compare them // against the migrations that have already been run for this package then // run each of the outstanding migrations against a database connection. $ ran = $ this -> migrator -> getRepository ( ) -> getRan ( ) ; $ migrations = array_diff ( $ files , $ ran ) ; $ this -> migrator -> requireFiles ( $ path , $ migrations ) ; foreach ( $ migrations as $ migration ) { $ this -> migrations [ ] = $ migration ; } return $ this ; }
Run migrations on a single module.

@param ModuleContainerInterface $module

@return $this
Run migrations on a single module .