Changeset 29206 for trunk/src/wp-admin/install-helper.php
- Timestamp:
- 07/17/2014 09:13:53 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/install-helper.php
r27262 r29206 58 58 } 59 59 } 60 // didn't find ittry to create it.60 // Didn't find it, so try to create it. 61 61 $wpdb->query($create_ddl); 62 // we cannot directly tell that whether this succeeded! 62 63 // We cannot directly tell that whether this succeeded! 63 64 foreach ($wpdb->get_col("SHOW TABLES",0) as $table ) { 64 65 if ($table == $table_name) { … … 91 92 } 92 93 } 93 //didn't find it try to create it. 94 95 // Didn't find it, so try to create it. 94 96 $wpdb->query($create_ddl); 95 // we cannot directly tell that whether this succeeded! 97 98 // We cannot directly tell that whether this succeeded! 96 99 foreach ($wpdb->get_col("DESC $table_name",0) as $column ) { 97 100 if ($column == $column_name) { … … 119 122 foreach ($wpdb->get_col("DESC $table_name",0) as $column ) { 120 123 if ($column == $column_name) { 121 //found it try to drop it. 124 125 // Found it, so try to drop it. 122 126 $wpdb->query($drop_ddl); 123 // we cannot directly tell that whether this succeeded! 127 128 // We cannot directly tell that whether this succeeded! 124 129 foreach ($wpdb->get_col("DESC $table_name",0) as $column ) { 125 130 if ($column == $column_name) { … … 129 134 } 130 135 } 131 // else didn't find it136 // Else didn't find it. 132 137 return true; 133 138 } … … 168 173 169 174 if ($row->Field == $col_name) { 170 // got our column, check the params 175 176 // Got our column, check the params. 171 177 if (($col_type != null) && ($row->Type != $col_type)) { 172 178 ++$diffs;
Note: See TracChangeset
for help on using the changeset viewer.