Adds a statement to add a geometry column

@param Blueprint $blueprint
@param Fluent $command
@return string
10477
protected function compileGeometry(Blueprint $blueprint, Fluent $command)
    {

        $dimensions = $command->dimensions ?: 2;
        $typmod = $command->typmod ? 'true' : 'false';
        $srid = $command->srid ?: 4326;

        return sprintf(
            "SELECT AddGeometryColumn('%s', '%s', %d, '%s', %d, %s)",
            $blueprint->getTable(),
            $command->column,
            $srid,
            strtoupper($command->type),
            $dimensions,
            $typmod
        );
    }
617386
protected function build(Blueprint $blueprint) {
        $grammar = new \Sgpatil\Orientdb\Schema\Grammars\OrientdbGrammar();
        $blueprint->build($this->connection, $grammar);
    }
271951
def compile_create(self, blueprint, command, _):
        
        columns = ', '.join(self._get_columns(blueprint))

        sql = 'CREATE TABLE %s (%s' % (self.wrap_table(blueprint), columns)

        sql += self._add_foreign_keys(blueprint)

        sql += self._add_primary_keys(blueprint)

        return sql + ')'
18781
public function compileRenameColumn(Blueprint $blueprint, Fluent $command, Connection $connection)
    {
        $table = $this->wrapTable($blueprint);

        $rs    = [];
        $rs[0] = 'alter table ' . $table . ' rename column ' . $command->from . ' to ' . $command->to;

        return (array) $rs;
    }
1343943
public function compileCreate( Blueprint $blueprint, Fluent $command, Connection $connection )
	{
		$columns = implode( ', ', $this->getColumns( $blueprint ) );

		$sql = $blueprint->temporary ? 'create temporary' : 'create';

		$sql .= ' table ' . $this->wrapTable( $blueprint ) . " ($columns)";

		// Once we have the primary SQL, we can add the encoding option to the SQL for
		// the table.  Then, we can check if a storage engine has been supplied for
		// the table. If so, we will add the engine declaration to the SQL query.
		$sql = $this->compileCreateEncoding( $sql, $connection, $blueprint );

		if ( isset( $blueprint->engine ) )
		{
			$sql .= ' engine = ' . $blueprint->engine;
		}
		elseif ( !is_null( $engine = $connection->getConfig( 'engine' ) ) )
		{
			$sql .= ' engine = ' . $engine;
		}

		return $sql;
	}
200826
public function compileDropPrimary(Blueprint $blueprint, Fluent $command)
    {
        $index = $this->wrap($command->index);

        return "alter table {$this->wrapTable($blueprint)} drop constraint {$index}";
    }
341321
protected function getChangedDiff( Blueprint $blueprint, SchemaManager $schema )
	{
		$table = $schema->listTableDetails( $this->getTablePrefix() . $blueprint->getTable() );

		return ( new Comparator )->diffTable( $table, $this->getTableWithColumnChanges( $blueprint, $table ) );
	}
558556
public function addItemsFromBlueprint(Blueprint $blueprint) {
        foreach($blueprint->getToolbarItems() as $item) {
            $this->addItem($item);
        }
    }
157472
private function addCredentialsColumns(Blueprint $table)
    {
        if (SocialAuthenticator::isEnabled()) {
            $table->string('password')->nullable();
            // Social network columns
            $table->string('social_provider')->nullable();
            $table->string('social_provider_id')->unique()->nullable();
        }
        else {
            $table->string('password');
        }
    }
873445
public function getDoctrineTableDiff(Blueprint $blueprint, SchemaManager $schema)
    {
        $table = $this->getTablePrefix().$blueprint->getTable();

        return tap(new TableDiff($table), function ($tableDiff) use ($schema, $table) {
            $tableDiff->fromTable = $schema->listTableDetails($table);
        });
    }
280380
protected static function getTableWithColumnChanges(Blueprint $blueprint, Table $table)
    {
        $table = clone $table;

        foreach ($blueprint->getChangedColumns() as $fluent) {
            $column = static::getDoctrineColumn($table, $fluent);

            // Here we will spin through each fluent column definition and map it to the proper
            // Doctrine column definitions - which is necessary because Laravel and Doctrine
            // use some different terminology for various column attributes on the tables.
            foreach ($fluent->getAttributes() as $key => $value) {
                if (! is_null($option = static::mapFluentOptionToDoctrine($key))) {
                    if (method_exists($column, $method = 'set'.ucfirst($option))) {
                        $column->{$method}(static::mapFluentValueToDoctrine($option, $value));
                    }
                }
            }
        }

        return $table;
    }
1046589
public function compileCreate(Blueprint $blueprint, Fluent $command)
	{
		$columns = implode(', ', $this->getColumns($blueprint));

		$sql = $blueprint->temporary ? 'create temporary' : 'create';

		$sql .= ' table '.$this->wrapTable($blueprint)." ($columns)";

		return $sql;
	}
47349
protected function compileIndexKey($operation, Blueprint $blueprint, Fluent $command)
    {
        $label = $this->wrapLabel($blueprint);
        $property = $this->propertize($command->property);

        return "$operation INDEX ON $label($property)";
    }
111637
protected function getCommandByName(Blueprint $blueprint, $name)
    {
        $commands = $this->getCommandsByName($blueprint, $name);

        if (count($commands) > 0) {
            return reset($commands);
        }
    }
1130266
def compile_foreign(self, blueprint, command, _):
        
        table = self.wrap_table(blueprint)

        on = self.wrap_table(command.on)

        columns = self.columnize(command.columns)

        on_columns = self.columnize(command.references
                                    if isinstance(command.references, list)
                                    else [command.references])

        sql = 'ALTER TABLE %s ADD CONSTRAINT %s ' % (table, command.index)

        sql += 'FOREIGN KEY (%s) REFERENCES %s (%s)' % (columns, on, on_columns)

        if command.get('on_delete'):
            sql += ' ON DELETE %s' % command.on_delete

        if command.get('on_update'):
            sql += ' ON UPDATE %s' % command.on_update

        return sql
368309
public function blueprint(Blueprint $blueprint) {
        foreach($blueprint->getActions() as $action) {
            $this->action($action);
        }
    }
1010770
public static function addColumn(Blueprint $table, string $name)
    {
        $table->unsignedInteger($name)->nullable();
        $table->index($name);
    }