public function DataTable::compareSchema in Data 6
Same name and namespace in other branches
- 7 includes/DataTable.inc \DataTable::compareSchema()
Compare this table's schema to schema of table in DB. Requires schema module.
File
- includes/
DataTable.inc, line 233 - 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);
}
}