" ?>
charset) )
$charset_collate = "DEFAULT CHARACTER SET $wpdb->charset";
/**
* If you want to create new tables you'll need to install them on
* activation.
*
* You should try your best to use existing tables if you can. The
* activity stream and meta tables are very flexible.
*
* Write your table definition below, you can define multiple
* tables by adding SQL to the $sql array.
*/
$sql = array();
$sql[] = "CREATE TABLE IF NOT EXISTS {$wpdb->base_prefix}bp_example (
id bigint(20) NOT NULL AUTO_INCREMENT PRIMARY KEY,
high_fiver_id bigint(20) NOT NULL,
recipient_id bigint(20) NOT NULL,
date_notified datetime NOT NULL,
KEY high_fiver_id (high_fiver_id),
KEY recipient_id (recipient_id)
) {$charset_collate};";
//require_once( ABSPATH . 'wp-admin/upgrade.php' );
/**
* The dbDelta call is commented out so the example table is not installed.
* Once you define the SQL for your new table, uncomment this line to install
* the table. (Make sure you increment the BP_EXAMPLE_DB_VERSION constant though).
*/
dbDelta($sql);
update_site_option( 'bp-example-db-version', BP_EXAMPLE_DB_VERSION );
}
//add_action( 'admin_init', 'bp_example_install_tables' );
?>