Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
03/01/2015 05:22:59 PM (10 years ago)
Author:
johnjamesjacoby
Message:

Notifications: Introduce notification metadata table.

  • Bump DB version
  • Introduce DB upgrade function & routine for 2.3.0
  • Add metadata table to Notifications installation function
  • Add metadata CRUD functions to Notifications component

See #6257.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-update.php

    r9503 r9572  
    212212        bp_core_install();
    213213
    214         // 1.5
     214        // 1.5.0
    215215        if ( $raw_db_version < 1801 ) {
    216216            bp_update_to_1_5();
     
    218218        }
    219219
    220         // 1.6
     220        // 1.6.0
    221221        if ( $raw_db_version < 6067 ) {
    222222            bp_update_to_1_6();
    223223        }
    224224
    225         // 1.9
     225        // 1.9.0
    226226        if ( $raw_db_version < 7553 ) {
    227227            bp_update_to_1_9();
     
    233233        }
    234234
    235         // 2.0
     235        // 2.0.0
    236236        if ( $raw_db_version < 7892 ) {
    237237            bp_update_to_2_0();
     
    243243        }
    244244
    245         // 2.2
     245        // 2.2.0
    246246        if ( $raw_db_version < 9181 ) {
    247247            bp_update_to_2_2();
     248        }
     249
     250        // 2.3.0
     251        if ( $raw_db_version < 9572 ) {
     252            bp_update_to_2_3();
    248253        }
    249254    }
     
    415420            bp_cleanup_friendship_activities();
    416421        }
     422    }
     423}
     424
     425/**
     426 * 2.3.0 update routine.
     427 *
     428 * - Add notifications meta table
     429 *
     430 * @since BuddyPress (2.3.0)
     431 */
     432function bp_update_to_2_3() {
     433    if ( bp_is_active( 'notifications' ) ) {
     434        bp_core_install_notifications();
    417435    }
    418436}
Note: See TracChangeset for help on using the changeset viewer.