Changeset 2460751
- Timestamp:
- 01/22/2021 04:45:59 AM (5 years ago)
- Location:
- wp-mlm/trunk
- Files:
-
- 2 edited
-
core_functions/wp-mlm-db-functions.php (modified) (1 diff)
-
wpmlm-unilevel.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wp-mlm/trunk/core_functions/wp-mlm-db-functions.php
r2460750 r2460751 763 763 $wpdb->query($sql); 764 764 } 765 766 767 768 function wpmlm_update_tables_when_plugin_updating() {769 770 771 $oldVersion = get_option( 'fa_userloginhostory_version', '1.0' );772 $newVersion = '1.2';773 774 if ( !(version_compare( $oldVersion, $newVersion ) < 0) ) {775 return FALSE;776 }777 778 779 global $wpdb;780 $table_prefix = $wpdb->prefix;781 $charset_collate = $wpdb->get_charset_collate();782 $sql = "CREATE TABLE IF NOT EXISTS {$table_prefix}wpmlm_general_information (783 `id` int(11) NOT NULL AUTO_INCREMENT,784 `company_name` varchar(300) NOT NULL,785 `company_address` varchar(500) NOT NULL,786 `company_logo` varchar(300) NOT NULL,787 `company_email` varchar(300) NOT NULL,788 `company_phone` text NOT NULL,789 `company_currency` varchar(100) NOT NULL,790 `user_dash` int(11) NOT NULL DEFAULT '0',791 `user_registration` int(11) NOT NULL DEFAULT '0',792 `registration_type` VARCHAR( 100 ) NOT NULL DEFAULT 'with_package',793 `registration_amt` float NOT NULL DEFAULT '0',794 795 `site_logo` VARCHAR( 50 ) NOT NULL,796 PRIMARY KEY (`id`)797 ) {$charset_collate} AUTO_INCREMENT=1";798 799 require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );800 dbDelta($sql);801 } -
wp-mlm/trunk/wpmlm-unilevel.php
r2460750 r2460751 157 157 add_action('login_head', 'wpmlm_login_style'); 158 158 add_action('login_head', 'wpmlm_custom_loginlogo'); 159 add_action('init', 'wpmlm_update_tables_when_plugin_updating');160 159 161 160 // load the scripts on only the plugin admin page
Note: See TracChangeset
for help on using the changeset viewer.