public function testAddingBinary() { $blueprint = new Blueprint('users'); $blueprint->binary('foo'); $statements = $blueprint->toSql($this->getGrammar()); $this->assertEquals(1, count($statements)); $this->assertEquals('alter table "users" add "foo" varbinary(max) not null', $statements[0]); }
public function testBasicSelectNotUsingQuotes() { $blueprint = new Blueprint('users'); $blueprint->create(); $blueprint->increments('id'); $blueprint->string('email'); $conn = $this->getConnection(); $statements = $blueprint->toSql($conn, $this->getGrammar(false)); $this->assertEquals(1, count($statements)); $this->assertEquals('create table users ( id number(10,0) not null, email varchar2(255) not null, constraint users_id_primary primary key ( id ) )', $statements[0]); }