Changeset 294 for trunk/wp-admin/upgrade-071-to-072.php
- Timestamp:
- 08/05/2003 10:44:38 PM (23 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/upgrade-071-to-072.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/upgrade-071-to-072.php
r290 r294 44 44 45 45 case 0: 46 { 46 47 ?> 47 48 <p>Welcome to WordPress. You're already part of the family so this should be familiar … … 70 71 you’re all ready, <a href="<?php echo $thisfile;?>?step=1">let's go</a>! </p> 71 72 <?php 72 break; 73 break; 74 } 73 75 74 76 case 1: 77 { 75 78 ?> 76 79 <h1>Step 1</h1> … … 202 205 <?php 203 206 } 204 break; 205 case 2: 207 break; 208 } // end case 1 209 210 case 2: 211 { 206 212 ?> 207 213 <h1>Step 2</h1> 214 <p>There are some changes we need to make to the post table, we'll do those next.</p> 215 <?php 216 $error_count = 0; 217 $tablename = $tableposts; 218 219 $ddl = "ALTER TABLE $tableposts ADD COLUMN post_lon float "; 220 maybe_add_column($tablename, 'post_lon', $ddl); 221 if (check_column($tablename, 'post_lon', 'float')) { 222 $res .= $tablename . ' - ok <br />'."\n"; 223 } else { 224 $res .= 'There was a problem with ' . $tablename . '<br />'."\n"; 225 ++$error_count; 226 } 227 228 $ddl = "ALTER TABLE $tableposts ADD COLUMN post_lat float "; 229 maybe_add_column($tablename, 'post_lat', $ddl); 230 if (check_column($tablename, 'post_lat', 'float')) { 231 $res .= $tablename . ' - ok <br />'."\n"; 232 } else { 233 $res .= 'There was a problem with ' . $tablename . '<br />'."\n"; 234 ++$error_count; 235 } 236 237 238 if ($error_count > 0) { 239 echo("<p>$res</p>"); 240 ?> 241 <p>Hmmm... there was some kind of error. If you cannot figure out 242 see from the output above how to correct the problems please 243 visit our <a href="http://wordpress.org/support/">support 244 forums</a> and report your problem.</p> 245 <?php 246 } else { 247 ?> 248 <p>OK, another step completed. Let's move on to <a href="<?php echo $thisfile;?>?step=3">step 3</a>.</p> 249 <?php 250 } 251 break; 252 } // end case 2 253 254 case 3: 255 { 256 ?> 257 <h1>Step 3</h1> 208 258 <p>There are a few new database tables with this version, so lets get those out of 209 259 the way.</p> … … 524 574 525 575 ?> 576 <?php 577 $geo_option_data = array( 578 // data for geo settings 579 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(84,'use_geo_positions', 2, '1', 'Turns on the geo url features of WordPress', 8, 20)", 580 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(85,'use_default_geourl', 2, '1','enables placement of default GeoURL ICBM location even when no other specified', 8, 20)", 581 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(86,'default_geourl_lat ', 8, 0.0, 'The default Latitude ICBM value - <a href=\"http://www.geourl.org/resources.html\" target=\"_blank\">see here</a>', 8, 20)", 582 "INSERT INTO $tableoptions (option_id, option_name, option_type, option_value, option_description, option_admin_level, option_width) VALUES(87,'default_geourl_lon', 8, 0.0, 'The default Longitude ICBM value', 8, 20)", 583 584 "INSERT INTO $tableoptiongroups (group_id, group_name, group_desc) VALUES(9,'Geo Options', 'Settings which control the posting and display of Geo Options')", 585 586 "INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(9,84,1)", 587 "INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(9,85,1)", 588 "INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(9,86,1)", 589 "INSERT INTO $tableoptiongroup_options (group_id, option_id, seq) VALUES(9,87,1)", 590 ); 591 592 foreach ($geo_option_data as $query) { 593 $q = $wpdb->query($query); 594 } 595 ?> 596 597 <p>Geo option data inserted okay.</p> 598 526 599 527 600 <p>Good, the option data was inserted okay.</p> … … 742 815 <?php 743 816 } // end else no b2config 744 break; 817 break; 818 } // end case 3 745 819 } 746 820 ?>
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)