SilverStripe\PostgreSQL\PostgreSQLSchemaManager::constraintExists
Find out what the constraint information is, given a constraint name.
We also cache this result, so the next time we don't need to do a query all over again.
Signature
protected function constraintExists(string
$constraint,
[boolean
$cache = true] )
Parameters
$constraint
— string$cache
— boolean- Flag whether a cached version should be used. Set to false to cache bust.
Returns
- false|array
- Either false, if the constraint doesn't exist, or an array
with the keys conname and pg_get_constraintdef