private function _addMigrationRecord( $class )
    {
        $name = $this->db->prepareString( $class );
        $tm   = new \DateTime();
        $tm   = $tm->getTimestamp();
        
        // update migrations table with the new applied migration
        $query = "INSERT INTO $this->migrationTable 
                 ( migration_name, migration_date_applied ) VALUES ( ";
        
        $query .= "'$name', ";
        $query .= "$tm";
        
        $query .= " )";
        
        $this->db->lockTables( $this->migrationTable );
        
        $id = $this->db->insert( $query );
        
        if ( $this->verbose )
        {
            echo 'Migrating: ' . $class . PHP_EOL;
        }
        
        $this->db->unlockTables();
        
        return FALSE !== $id;
    }
private function _addMigrationRecord( $class )
    {
        $name = $this->db->prepareString( $class );
        $tm   = new \DateTime();
        $tm   = $tm->getTimestamp();
        
        // update migrations table with the new applied migration
        $query = "INSERT INTO $this->migrationTable 
                 ( migration_name, migration_date_applied ) VALUES ( ";
        
        $query .= "'$name', ";
        $query .= "$tm";
        
        $query .= " )";
        
        $this->db->lockTables( $this->migrationTable );
        
        $id = $this->db->insert( $query );
        
        if ( $this->verbose )
        {
            echo 'Migrating: ' . $class . PHP_EOL;
        }
        
        $this->db->unlockTables();
        
        return FALSE !== $id;
    }
private function _addMigrationRecord ( $ class ) { $ name = $ this -> db -> prepareString ( $ class ) ; $ tm = new \ DateTime ( ) ; $ tm = $ tm -> getTimestamp ( ) ; // update migrations table with the new applied migration $ query = "INSERT INTO $this->migrationTable 
                 ( migration_name, migration_date_applied ) VALUES ( " ; $ query .= "'$name', " ; $ query .= "$tm" ; $ query .= " )" ; $ this -> db -> lockTables ( $ this -> migrationTable ) ; $ id = $ this -> db -> insert ( $ query ) ; if ( $ this -> verbose ) { echo 'Migrating: ' . $ class . PHP_EOL ; } $ this -> db -> unlockTables ( ) ; return FALSE !== $ id ; }
Inserts an applied migration into the database.

@param string $class migration name

@return bool TRUE on success, FALSE on failure
Inserts an applied migration into the database .