src/Migrator.php
protected function up($className)
    {
        if ($fileName = $this->migrated($className)) {
            $migration = new $className;
            $migration->up();
            $migration->execute();

            $this->connection->insert("schema_migrations", [
                'version' => $fileName,
                'date'    => date("Y-m-d")
            ]);
        }
    }
protected function up($className)
    {
        if ($fileName = $this->migrated($className)) {
            $migration = new $className;
            $migration->up();
            $migration->execute();

            $this->connection->insert("schema_migrations", [
                'version' => $fileName,
                'date'    => date("Y-m-d")
            ]);
        }
    }
protected function up ( $ className ) { if ( $ fileName = $ this -> migrated ( $ className ) ) { $ migration = new $ className ; $ migration -> up ( ) ; $ migration -> execute ( ) ; $ this -> connection -> insert ( "schema_migrations" , [ 'version' => $ fileName , 'date' => date ( "Y-m-d" ) ] ) ; } }
Migrates the database forward.

@param string $className
Migrates the database forward .