Commit ad9dc568 authored by Jens Segers's avatar Jens Segers

Fixes #104

parent 76781d79
......@@ -178,16 +178,6 @@ class Blueprint extends \Illuminate\Database\Schema\Blueprint {
$this->collection->drop();
}
/**
* Allow an attribute to be null, does not do anything.
*
* @return Blueprint
*/
public function nullable()
{
return $this;
}
/**
* Add a new column to the blueprint.
*
......@@ -224,4 +214,14 @@ class Blueprint extends \Illuminate\Database\Schema\Blueprint {
}
}
/**
* Allows the use of unsupported schema methods.
*
* @return Blueprint
*/
public function __call($method, $args)
{
return $this;
}
}
......@@ -141,6 +141,15 @@ class SchemaTest extends PHPUnit_Framework_TestCase {
$this->assertEquals(1, $index['key']['token']);
}
public function testDummies()
{
Schema::collection('newcollection', function($collection)
{
$collection->boolean('activated')->default(0);
$collection->integer('user_id')->unsigned();
});
}
protected function getIndex($collection, $name)
{
$collection = DB::getCollection($collection);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment