public function up($limit = 0)
    {
        $migrations = $this->getNewMigrations();

        if (empty($migrations)) {
            $this->messages[] = 'No new migration found. Your system is up-to-date.';
            return true;
        }

        foreach ($migrations as $migration) {
            if (!$this->migrateUp($migration)) {
                $this->messages[] = "Migration {$migration} failed. The rest of the migrations are canceled.";
                return false;
            }
        }
        return true;
    }
public function up($limit = 0)
    {
        $migrations = $this->getNewMigrations();

        if (empty($migrations)) {
            $this->messages[] = 'No new migration found. Your system is up-to-date.';
            return true;
        }

        foreach ($migrations as $migration) {
            if (!$this->migrateUp($migration)) {
                $this->messages[] = "Migration {$migration} failed. The rest of the migrations are canceled.";
                return false;
            }
        }
        return true;
    }
public function up ( $ limit = 0 ) { $ migrations = $ this -> getNewMigrations ( ) ; if ( empty ( $ migrations ) ) { $ this -> messages [ ] = 'No new migration found. Your system is up-to-date.' ; return true ; } foreach ( $ migrations as $ migration ) { if ( ! $ this -> migrateUp ( $ migration ) ) { $ this -> messages [ ] = "Migration {$migration} failed. The rest of the migrations are canceled." ; return false ; } } return true ; }
Upgrades the application by applying new migrations.

@return integer the status of the action execution. 0 means normal, other values mean abnormal.
Upgrades the application by applying new migrations .