Changeset 7904 for trunk/bp-core/bp-core-update.php
- Timestamp:
- 02/17/2014 12:42:05 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-update.php
r7860 r7904 233 233 234 234 // 2.0 235 if ( $raw_db_version < 78 59) {235 if ( $raw_db_version < 7892 ) { 236 236 bp_update_to_2_0(); 237 237 } … … 338 338 * - Ensure that the activity tables are installed, for last_activity storage. 339 339 * - Migrate last_activity data from usermeta to activity table 340 * - Add values for all BuddyPress options to the options table 340 341 */ 341 342 function bp_update_to_2_0() { 342 343 global $wpdb; 343 344 344 / / Install activity tables345 /** Install activity tables for 'last_activity' **********************/ 345 346 bp_core_install_activity_streams(); 346 347 347 348 $bp = buddypress(); 348 349 349 // Migrate data 350 /** Migrate 'last_activity' data *************************************/ 351 350 352 // The "NOT IN" clause prevents duplicates 351 353 $sql = "INSERT INTO {$bp->members->table_name_last_activity} (`user_id`, `component`, `type`, `date_recorded` ) ( … … 363 365 364 366 $wpdb->query( $sql ); 367 368 /** Add BP options to the options table ******************************/ 369 bp_add_options(); 365 370 } 366 371 … … 405 410 // Force refresh theme roots. 406 411 delete_site_transient( 'theme_roots' ); 412 413 // Add options 414 bp_add_options(); 407 415 408 416 // Use as of (1.6)
Note: See TracChangeset
for help on using the changeset viewer.