Changeset 3096067
- Timestamp:
- 06/01/2024 01:37:30 PM (21 months ago)
- Location:
- bulk-mail-sender
- Files:
-
- 2 edited
-
tags/1.1.5/App/BMSIActivate.php (modified) (3 diffs)
-
trunk/App/BMSIActivate.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bulk-mail-sender/tags/1.1.5/App/BMSIActivate.php
r3096054 r3096067 59 59 )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci"; 60 60 61 62 63 61 $create_tbl_history = "CREATE TABLE $tbl_history ( 64 62 `id` int(25) not null auto_increment, … … 81 79 82 80 83 $alter_tbl_history = "ALTER TABLE $tbl_history84 ADD COLUMN `open_count` varchar(50) NOT NULL DEFAULT '0'";85 86 81 require_once (ABSPATH . '/wp-admin/includes/upgrade.php'); 87 82 maybe_create_table($tbl_mail_details, $create_tbl_mail_details); … … 92 87 maybe_create_table($tbl_email_queue, $create_tbl_email_queue); 93 88 94 95 $wpdb->query($alter_tbl_history); 89 if ($wpdb->get_var("SHOW COLUMNS FROM $tbl_history LIKE 'open_count'") !== 'open_count') { 90 91 $alter_tbl_history = "ALTER TABLE $tbl_history ADD COLUMN `open_count` varchar(50) NOT NULL DEFAULT '0'"; 92 $wpdb->query($alter_tbl_history); 93 } 96 94 } 97 95 98 96 } 99 ?> -
bulk-mail-sender/trunk/App/BMSIActivate.php
r3091711 r3096067 59 59 )ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci"; 60 60 61 62 63 61 $create_tbl_history = "CREATE TABLE $tbl_history ( 64 62 `id` int(25) not null auto_increment, … … 81 79 82 80 83 $alter_tbl_history = "ALTER TABLE $tbl_history84 ADD COLUMN `open_count` varchar(50) NOT NULL DEFAULT '0'";85 86 81 require_once (ABSPATH . '/wp-admin/includes/upgrade.php'); 87 82 maybe_create_table($tbl_mail_details, $create_tbl_mail_details); … … 92 87 maybe_create_table($tbl_email_queue, $create_tbl_email_queue); 93 88 94 95 $wpdb->query($alter_tbl_history); 89 if ($wpdb->get_var("SHOW COLUMNS FROM $tbl_history LIKE 'open_count'") !== 'open_count') { 90 91 $alter_tbl_history = "ALTER TABLE $tbl_history ADD COLUMN `open_count` varchar(50) NOT NULL DEFAULT '0'"; 92 $wpdb->query($alter_tbl_history); 93 } 96 94 } 97 95 98 96 } 99 ?>
Note: See TracChangeset
for help on using the changeset viewer.