Drop Column action with mysql

@param string $name
163951
private function dropColumnOnSqlite($name)
    {
        $pdo = Database::getPdo();

        $names = (array) $name;

        $statement = $pdo->query(sprintf('PRAGMA table_info(%s);', $this->table));

        $statement->execute();

        $sql = [];

        foreach ($statement->fetchAll() as $column) {
            if (!in_array($column->name, $names)) {
                $select[] = $column->name;
            }
        }

        $pdo->exec('BEGIN TRANSACTION;');

        $pdo->exec(sprintf(
            'CREATE TABLE __temp_sqlite_table AS SELECT %s FROM %s;',
            implode(', ', $select),
            $this->table
        ));

        $pdo->exec(sprintf('DROP TABLE %s;', $this->table));

        $pdo->exec(sprintf('ALTER TABLE __temp_sqlite_table RENAME TO %s;', $this->table));

        $pdo->exec('COMMIT;');
    }
378594
public static function dropTemporaryTable(string $tableName): void
  {
    $query = sprintf('drop temporary table `%s`', $tableName);

    self::executeNone($query);
  }
902853
public function getAlterDrop($table, $field, $name = null)
    {
        $table = $this->validTableName($table);
        if ($name === null) {
            $name = $field['field'];
        }
        return "ALTER TABLE $table DROP COLUMN `{$name}`";
    }
355597
public function dropIndex($name)
    {
        if (is_array($name))
            $name = $this->name.'___'.implode('__', $name);
        elseif(!is_int(strpos($name,'___')))
            $name = $this->name.'___'.$name;
        $name = $this->db->quotekey($name);
        $table = $this->db->quotekey($this->name);
        $cmd = array(
            'pgsql|sqlite2?|ibm' =>
                "DROP INDEX $name;",
            'mssql|sybase|dblib|odbc|sqlsrv' =>
                "DROP INDEX $table.$name;",
            'mysql'=>
                "ALTER TABLE $table DROP INDEX $name;",
        );
        $query = $this->findQuery($cmd);
        $this->queries[] = $query;
    }
282088
public function close($name = null)
    {
        if (null === $name) {
            $name = $this->current ?: 'default';
        }

        if (isset($this->connections[$name])) {
            unset($this->connections[$name]);
        }
    }
518573
public function remove($name)
    {
        $this->requireNames();
        
        $lower = strtolower($name);
        if(array_key_exists($lower, $this->names)) {
            $name = $this->names[$lower];
            unset($this->names[$lower]);
            unset($this->headers[$name]);
        }
    }
390487
public final function renameColumn($column, $name)
    {
        $oldName = $column->getName();

        $this->requireColumn($oldName);
        $this->forbidColumn($name);

        $this->_renameColumn($column, $name);
        // Update column cache
        $this->_columns[$name] = $column;
        unset($this->_columns[$oldName]);
        $this->_updateConstraints($oldName, $name);
    }
1271299
public function dropIndex($name)
    {
        $names = (array) $name;

        foreach ($names as $name) {
            $this->sqls[] = sprintf('DROP INDEX `%s`', $name);
        }

        return $this;
    }
339988
public function remove($name): void
    {
        if ($this->contains($name) == false) {
            return;
        }

        unset($this->record[$name]);
    }
1090760
def drop_column(self, name):
        
        name = self._normalize_identifier(name)
        del self._columns[name]

        return self
880610
function dropIndex($name)
    {

        $index = new Index($name);

        $index->connection = $this->connection;

        return $index->drop();
    }
944816
protected function dbDropTable($name = '')
    {
        $result = Eresus_CMS::getLegacyKernel()->db->drop($this->__table($name));
        return $result;
    }
871654
public function dropForeign($name)
    {
        $names = (array) $name;

        foreach ($names as $name) {
            $this->sqls[] = sprintf('DROP FOREIGN KEY `%s`', $name);
        }

        return $this;
    }
1244825
private static void removeTable(Connection conn, String name) throws SQLException {
	name = name.replace('.', '_');
	Statement stat = conn.createStatement();
	stat.execute("DROP TABLE " + name);
	DBUtil.commitEL(conn);
    }
665172
public function dropCheck($name)
    {
        if (!$this->hasCheck($name)) {
            throw SchemaException::tableCheckDoesNotExist($this->getName(), $name);
        }

        unset($this->checks[$name]);
    }
993111
public function removeColumn($name)
    {
        unset($this->columns[$name]);
        if ($this->last_column == $name) {
            $this->last_column = null;
        }

        return $this;
    }
219300
public function delete($name)
    {
        if (array_key_exists($name, $this->getData())) {
            $this->_db->createCommand()->delete($this->tableName, 'name = :name', [':name' => $name])->execute();
            unset($this->_data[$name]);
        }

        $this->_setCache();
    }