Get the currently installed schema version for a module.

Public

Get raw version
bash
  1. drush ev 'require "includes/install.inc"; print drupal_get_installed_schema_version("module_name") . "\n";'
Get raw version
bash
  1. drush sql-query "SELECT schema_version FROM system WHERE name = 'module_name'"

Comments

techwarrior's picture

The easiest way is

drush pmi module_name

Where module_name is the name of the module