You are here

function drush_schema_compare_validate in Schema 8

Same name and namespace in other branches
  1. 7 schema.drush.inc \drush_schema_compare_validate()

File

./schema.drush.inc, line 87
Schema drush commands.

Code

function drush_schema_compare_validate($type = FALSE) {

  // Define the possible table types.
  $types = array(
    'match',
    'same',
    'mismatch',
    'different',
    'missing',
    'extra',
  );

  // Ensure that we were sent a valid one.
  if (!in_array($type, $types)) {
    return drush_set_error('ERROR_TYPE_INVALID', dt('You must specify a valid table type.'));
  }
}