We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c0f26e commit 41ab1fbCopy full SHA for 41ab1fb
drush/civicrm.drush.inc
@@ -684,6 +684,12 @@ function drush_civicrm_upgrade_db_validate() {
684
function drush_civicrm_upgrade_db() {
685
if (class_exists('CRM_Upgrade_Headless')) {
686
// Note: CRM_Upgrade_Headless introduced in 4.2 -- at the same time as class auto-loading
687
+ $codeVer = CRM_Utils_System::version();
688
+ $dbVer = CRM_Core_BAO_Domain::version();
689
+ if (version_compare($codeVer, $dbVer) == 0) {
690
+ drush_print(dt("You are already upgraded to CiviCRM @version", array('@version' => $codeVer)));
691
+ return TRUE;
692
+ }
693
$upgradeHeadless = new CRM_Upgrade_Headless();
694
// FIXME Exception handling?
695
$result = $upgradeHeadless->run();
0 commit comments