/**
  * Get a schema builder instance for the connection.
  *
  * @return \Illuminate\Database\Schema\Builder
  */
 public function getSchemaBuilder()
 {
     $builder = parent::getSchemaBuilder();
     $builder->blueprintResolver(function ($table, $callback) {
         return new Blueprint($table, $callback);
     });
     return $builder;
 }
 /**
  * Get a schema builder instance for the connection.
  *
  * @return \Illuminate\Database\Schema\Builder
  */
 public function getSchemaBuilder()
 {
     $parentBuilder = parent::getSchemaBuilder();
     // add a blueprint resolver closure that returns the custom blueprint
     $parentBuilder->blueprintResolver(function ($table, $callback) {
         return new Blueprint($table, $callback);
     });
     return $parentBuilder;
 }
Пример #3
0
 /**
  * Get a schema builder instance for the connection.
  *
  * @return \Illuminate\Database\Schema\Builder 
  * @static 
  */
 public static function getSchemaBuilder()
 {
     //Method inherited from \Illuminate\Database\Connection
     return \Illuminate\Database\PostgresConnection::getSchemaBuilder();
 }