M_Alterfor2

The Membership 2 M Alterfor2 function.

Description

M_Alterfor2(); 

Usage

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

Defined (1)

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

/app_old/membershipincludes/classes/upgrade.php  
  1. function M_Alterfor6() { 
  2. global $wpdb; 
  3.  
  4. $sql = "ALTER TABLE " . membership_db_prefix($wpdb, 'membership_relationships') . " ADD `usinggateway` varchar(50) NULL DEFAULT 'admin' AFTER `order_instance`;"; 
  5. $wpdb->query( $sql ); 
  6.  
  7. $sql = "ALTER TABLE " . membership_db_prefix($wpdb, 'membership_relationships') . " ADD INDEX (`user_id`);";