Skip to content

Commit

Permalink
Merge pull request #580 from tacone/patch-1
Browse files Browse the repository at this point in the history
Stub Schema::hasColumn(), fixes #579
  • Loading branch information
jenssegers committed Sep 14, 2015
2 parents e557a34 + 07d57e4 commit 6460d58
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/Jenssegers/Mongodb/Schema/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,30 @@ public function __construct(Connection $connection)
{
$this->connection = $connection;
}

/**
* Determine if the given table has a given column.
*
* @param string $table
* @param string $column
* @return bool
*/
public function hasColumn($table, $column)
{
return true;
}

/**
* Determine if the given table has given columns.
*
* @param string $table
* @param array $columns
* @return bool
*/
public function hasColumns($table, array $columns)
{
return true;
}
/**
* Determine if the given collection exists.
*
Expand Down

0 comments on commit 6460d58

Please sign in to comment.