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/admin/bp-core-admin-schema.php

    r9546 r9572  
    113113                KEY component_action (component_action),
    114114                KEY useritem (user_id,is_new)
     115            ) {$charset_collate};";
     116
     117    $sql[] = "CREATE TABLE {$bp_prefix}bp_notifications_meta (
     118                id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,
     119                notification_id bigint(20) NOT NULL,
     120                meta_key varchar(255) DEFAULT NULL,
     121                meta_value longtext DEFAULT NULL,
     122                KEY notification_id (notification_id),
     123                KEY meta_key (meta_key)
    115124            ) {$charset_collate};";
    116125
Note: See TracChangeset for help on using the changeset viewer.