src/Titon/Db/Driver/Schema.php
public function addPrimary($column, $options = false) {
        $symbol = is_string($options) ? $options : '';

        if (empty($this->_primaryKey)) {
            $this->_primaryKey = [
                'constraint' => $symbol,
                'columns' => [$column]
            ];
        } else {
            $this->_primaryKey['columns'][] = $column;
        }

        return $this;
    }
public function addPrimary($column, $options = false) {
        $symbol = is_string($options) ? $options : '';

        if (empty($this->_primaryKey)) {
            $this->_primaryKey = [
                'constraint' => $symbol,
                'columns' => [$column]
            ];
        } else {
            $this->_primaryKey['columns'][] = $column;
        }

        return $this;
    }
public function addPrimary ( $ column , $ options = false ) { $ symbol = is_string ( $ options ) ? $ options : '' ; if ( empty ( $ this -> _primaryKey ) ) { $ this -> _primaryKey = [ 'constraint' => $ symbol , 'columns' => [ $ column ] ] ; } else { $ this -> _primaryKey [ 'columns' ] [ ] = $ column ; } return $ this ; }
Add a primary key for a column. Only one primary key can exist.
However, multiple columns can exist in a primary key.

@param string $column
@param string|bool $options  Provide a name to reference the constraint by
@return $this
Add a primary key for a column . Only one primary key can exist . However multiple columns can exist in a primary key .