M_Upgrade

The Membership 2 M Upgrade function.

Description

M_Upgrade( (constant) $from = false ); 

Parameters (1)

0. $from — Optional. (constant) => false
The from.

Usage

  1. if ( !function_exists( 'M_Upgrade' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'membership-2/app_old/membershipincludes/classes/upgrade.php'; 
  3.  
  4. // The from. 
  5. $from = false; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = M_Upgrade($from); 
  9.  

Defined (1)

The function is defined in the following location(s).

/app_old/membershipincludes/classes/upgrade.php  
  1. function M_Upgrade($from = false) { 
  2.  
  3. switch($from) { 
  4.  
  5. case 1: 
  6. case 2: M_Alterfor2(); 
  7.  
  8. case 3: M_Alterfor3(); 
  9.  
  10. case 4: 
  11. case 5: M_Alterfor4(); 
  12.  
  13. case 6: M_Alterfor5(); 
  14.  
  15. case 7: M_Alterfor6(); 
  16.  
  17. case 8: 
  18. case 9: 
  19.  
  20. case 10: M_Alterfor11(); 
  21.  
  22. case 11: M_Alterfor12(); 
  23.  
  24. case 12: 
  25. case 13: M_Alterfor14(); 
  26.  
  27. break; 
  28.  
  29. case false: M_Createtables(); 
  30. break; 
  31.  
  32. default: M_Createtables(); 
  33. break; 
  34.