src/Database/Migration/Blueprint.php
/**
	 * Create a new drop index command on the blueprint.
	 *
	 * @param string $command
	 * @param string $type
	 * @param string|array $index
	 * @return Command
	 * @throws
	 */
Create a new drop index command on the blueprint.
Create a new drop index command on the blueprint .
protected function dropIndexCommand($command, $type, $index) {
		if ($this->isCreating()) {
			throw new MigrationException('Cannot drop an index while in table creation mode.');
		}
		$columns = array();
		if (is_array($index)) {
			$index = $this->createIndexName($type, $columns = $index);
		}
		return $this->indexCommand($command, $columns, $index);
	}
protected function dropIndexCommand ( $ command , $ type , $ index ) { if ( $ this -> isCreating ( ) ) { throw new MigrationException ( 'Cannot drop an index while in table creation mode.' ) ; } $ columns = array ( ) ; if ( is_array ( $ index ) ) { $ index = $ this -> createIndexName ( $ type , $ columns = $ index ) ; } return $ this -> indexCommand ( $ command , $ columns , $ index ) ; }
Create a new drop index command on the blueprint.
Create a new drop index command on the blueprint .