We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
unique
1 parent 44f21ed commit ecff92cCopy full SHA for ecff92c
src/FluidColumnOptions.php
@@ -58,9 +58,9 @@ public function null(): FluidColumnOptions
58
*
59
* @return FluidColumnOptions
60
*/
61
- public function unique(?string $indexName = null): FluidColumnOptions
+ public function unique(): FluidColumnOptions
62
{
63
- $this->fluidTable->unique([$this->namingStrategy->quoteIdentifier($this->column->getName())], $indexName);
+ $this->column->setCustomSchemaOption('unique', true);
64
return $this;
65
}
66
0 commit comments