Doctrine\DBAL\Platforms\AbstractPlatform::getUniqueConstraintDeclarationSQL
Obtain DBMS specific SQL code portion needed to set a unique constraint declaration to be used in statements like CREATE TABLE.
Signature
public function getUniqueConstraintDeclarationSQL(string
$name,
Index
$index )
Parameters
$name
— string- name of the unique constraint
$index
— Doctrine\DBAL\Schema\Index- index definition
Returns
- string
- DBMS specific SQL code portion needed
to set a constraint