/** * @param CreateTable $schema * * @return string */ protected function handlePrimaryKey(CreateTable $schema) { if (null === ($pk = $schema->getPrimaryKey())) { return ''; } return ",\n" . 'CONSTRAINT ' . $this->wrap($pk['name']) . ' PRIMARY KEY (' . $this->wrapArray($pk['columns']) . ')'; }