Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/03/2010 11:14:43 PM (14 years ago)
Author:
boonebgorges
Message:

Adds meta functions for xprofile field groups, fields, and individual data items. Fixes #671

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-schema.php

    r2882 r3346  
    228228                KEY is_required (is_required)
    229229               ) {$charset_collate};";
    230 
     230       
    231231    $sql[] = "CREATE TABLE {$wpdb->base_prefix}bp_xprofile_data (
    232232                id bigint(20) unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,
     
    239239               ) {$charset_collate};";
    240240
     241    $sql[] = "CREATE TABLE {$wpdb->base_prefix}bp_xprofile_meta (
     242                id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,
     243                object_id bigint(20) NOT NULL,
     244                object_type varchar(150) NOT NULL,
     245                meta_key varchar(255) DEFAULT NULL,
     246                meta_value longtext DEFAULT NULL,
     247                KEY object_id (object_id),
     248                KEY meta_key (meta_key)
     249               ) {$charset_collate};";
     250
    241251    dbDelta( $sql );
    242252
Note: See TracChangeset for help on using the changeset viewer.