Skip to content

Commit 6460d58

Browse files
committed
Merge pull request #580 from tacone/patch-1
Stub Schema::hasColumn(), fixes #579
2 parents e557a34 + 07d57e4 commit 6460d58

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/Jenssegers/Mongodb/Schema/Builder.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,30 @@ public function __construct(Connection $connection)
1414
{
1515
$this->connection = $connection;
1616
}
17+
18+
/**
19+
* Determine if the given table has a given column.
20+
*
21+
* @param string $table
22+
* @param string $column
23+
* @return bool
24+
*/
25+
public function hasColumn($table, $column)
26+
{
27+
return true;
28+
}
1729

30+
/**
31+
* Determine if the given table has given columns.
32+
*
33+
* @param string $table
34+
* @param array $columns
35+
* @return bool
36+
*/
37+
public function hasColumns($table, array $columns)
38+
{
39+
return true;
40+
}
1841
/**
1942
* Determine if the given collection exists.
2043
*

0 commit comments

Comments
 (0)