We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 80b0111 commit 1089ee3Copy full SHA for 1089ee3
src/Jenssegers/Mongodb/Schema/Blueprint.php
@@ -92,7 +92,7 @@ public function dropIndex($columns = null)
92
* @param string|array $columns
93
* @return bool
94
*/
95
- public function unique($columns = null)
+ public function unique($columns = null, $name = null)
96
{
97
$columns = $this->fluent($columns);
98
$this->index($columns, array('unique' => true));
tests/ConnectionTest.php
@@ -52,7 +52,7 @@ public function testMultipleConnections()
52
53
# Add fake host
54
$db = $app['config']['database.connections']['mongodb'];
55
- $db['host'] = array($db['host'], '0.0.0.0');
+ $db['host'] = array($db['host'], '1.2.3.4');
56
57
$connection = new Connection($db);
58
$mongoclient = $connection->getMongoClient();
0 commit comments