You are here

public static function SchemaComparator::compareDefault in Schema 8

Compare declared schema and the default database schema.

Return value

SchemaComparison The comparison result.

1 call to SchemaComparator::compareDefault()
drush_schema_fix in ./schema.drush.inc
Implements drush_COMMANDFILE_COMMANDNAME().

File

src/Comparison/SchemaComparator.php, line 54
Contains Drupal\schema\Comparison\SchemaComparator.

Class

SchemaComparator
Compares a declared schema array with the complete database schema.

Namespace

Drupal\schema\Comparison

Code

public static function compareDefault() {
  return (new self(schema_get_schema(), schema_dbobject()))
    ->execute();
}