src/Database/Migration/Blueprint.php
/**
	 * Returns true if the table contains a primary key index.
	 *
	 * @return bool
	 */
Returns true if the table contains a primary key index.
@return bool
Returns true if the table contains a primary key index . @return bool
private function hasPrimaryKey() {
		foreach ($this->commands as $command) {
			if ($command->name == 'primary') {
				return true;
			}
		}
		return false;
	}
private function hasPrimaryKey ( ) { foreach ( $ this -> commands as $ command ) { if ( $ command -> name == 'primary' ) { return true ; } } return false ; }
Returns true if the table contains a primary key index.
Returns true if the table contains a primary key index .