You are here

public function DataTable::compareSchema in Data 7

Same name and namespace in other branches
  1. 6 includes/DataTable.inc \DataTable::compareSchema()

Compare this table's schema to schema of table in DB. Requires schema module.

File

includes/DataTable.inc, line 249
Contains class definition for DataTable.

Class

DataTable
Manages data access and manipulation for a single data table. Use data_create_table() or data_get_table() to instantiate an object from this class.

Code

public function compareSchema() {
  if (module_exists('schema')) {
    $this->table_schema['name'] = $this->name;
    return schema_compare_table($this->table_schema);
  }
}