public function testAddingTime() { $blueprint = new Blueprint('users'); $blueprint->time('foo'); $statements = $blueprint->toSql($this->getGrammar()); $this->assertEquals(1, count($statements)); $this->assertEquals('alter table "users" add "foo" time not null', $statements[0]); }
/** * Campo HORA. */ public function time($column) { $col = parent::time(strtolower($column)); $col->nullable(true); return $col; }
public function testAddingTime() { $blueprint = new Blueprint('users'); $blueprint->time('foo'); $statements = $blueprint->toSql($this->getConnection(), $this->getGrammar()); $this->assertEquals(1, count($statements)); $this->assertEquals('alter table users add ( foo date not null )', $statements[0]); }