You are here

public function Table::compareSchema in Data 8

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

File

src/Table.php, line 247

Class

Table
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.

Namespace

Drupal\data

Code

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