File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -869,10 +869,20 @@ private function maybe_trigger_migration() {
869869 $ base_current_version = preg_replace ( '/-nightly.*$/ ' , '' , EE_VERSION );
870870
871871 if ( Comparator::lessThan ( $ base_current_version , $ base_db_version ) ) {
872+
873+ $ ee_update_command = 'ee cli update --stable --yes ' ;
874+ if ( IS_DARWIN ) {
875+ $ ee_update_command = 'brew upgrade easyengine ' ;
876+ }
877+ $ ee_update_msg = sprintf (
878+ 'It seems you \'re not running latest version. Update EasyEngine using `%s`. ' ,
879+ $ ee_update_command
880+ );
881+
872882 if ( ! empty ( $ this ->arguments ) && 'cli ' === $ this ->arguments [0 ] ) {
873- EE ::warning ( ' It seems you \' re not running latest version. Update EasyEngine using `ee cli update --stable --yes`. ' );
883+ EE ::warning ( $ ee_update_msg );
874884 } else {
875- EE ::error ( ' It seems you \' re not running latest version. Update EasyEngine using `ee cli update --stable --yes`. ' );
885+ EE ::error ( $ ee_update_msg );
876886 }
877887 } elseif ( $ db_version !== $ current_version ) {
878888 EE ::log ( 'Executing migrations. This might take some time. ' );
You can’t perform that action at this time.
0 commit comments