Pagekit\Database\Table::addUniqueIndex PHP Méthode

addUniqueIndex() public méthode

public addUniqueIndex ( array $columnNames, string | null $indexName = null, array $options = [] ) : self
$columnNames array
$indexName string | null
$options array
Résultat self
    public function addUniqueIndex(array $columnNames, $indexName = null, array $options = array())
    {
        if ($indexName) {
            $indexName = $this->connection->replacePrefix($indexName);
        }
        $this->table->addUniqueIndex($columnNames, $indexName, $options);
        return $this;
    }