public function getDropFieldSQL($xmldb_table, $xmldb_field) {

        $results = array();

        // Get the quoted name of the table and field
        $tablename = $this->getTableName($xmldb_table);
        $fieldname = $this->getEncQuoted($xmldb_field->getName());

        // Build the standard alter table drop
        $results[] = 'ALTER TABLE ' . $tablename . ' DROP COLUMN ' . $fieldname;

        return $results;
    }
public function getDropFieldSQL($xmldb_table, $xmldb_field) {

        $results = array();

        // Get the quoted name of the table and field
        $tablename = $this->getTableName($xmldb_table);
        $fieldname = $this->getEncQuoted($xmldb_field->getName());

        // Build the standard alter table drop
        $results[] = 'ALTER TABLE ' . $tablename . ' DROP COLUMN ' . $fieldname;

        return $results;
    }
public function getDropFieldSQL ( $ xmldb_table , $ xmldb_field ) { $ results = array ( ) ; // Get the quoted name of the table and field $ tablename = $ this -> getTableName ( $ xmldb_table ) ; $ fieldname = $ this -> getEncQuoted ( $ xmldb_field -> getName ( ) ) ; // Build the standard alter table drop $ results [ ] = 'ALTER TABLE ' . $ tablename . ' DROP COLUMN ' . $ fieldname ; return $ results ; }
Given one xmldb_table and one xmldb_field, return the SQL statements needed to drop the field from the table.

@param xmldb_table $xmldb_table The table related to $xmldb_field.
@param xmldb_field $xmldb_field The instance of xmldb_field to create the SQL from.
@return array The SQL statement for dropping a field from the table.
Given one xmldb_table and one xmldb_field return the SQL statements needed to drop the field from the table .