Inheritance: extends Illuminate\Database\Schema\Blueprint
 public function testAddingBinary()
 {
     $blueprint = new Blueprint('users');
     $blueprint->binary('foo');
     $statements = $blueprint->toSql($this->getConnection(), $this->getGrammar());
     $this->assertEquals(1, count($statements));
     $this->assertEquals('alter table users add ( foo blob not null )', $statements[0]);
 }
 /**
  * Create a new command set with a Closure.
  *
  * @param  string $table
  * @param  Closure $callback
  * @return \Illuminate\Database\Schema\Blueprint
  */
 protected function createBlueprint($table, Closure $callback = null)
 {
     $blueprint = new OracleBlueprint($table, $callback);
     $blueprint->setTablePrefix($this->connection->getTablePrefix());
     return $blueprint;
 }
Example #3
0
 /**
  * Add comments on columns.
  *
  * @param \Yajra\Oci8\Schema\OracleBlueprint $blueprint
  */
 private function commentColumns(OracleBlueprint $blueprint)
 {
     foreach ($blueprint->commentColumns as $column => $comment) {
         $this->commentColumn($blueprint->getTable(), $column, $comment);
     }
 }