Skip to:
Content

bbPress.org

Changeset 78


Ignore:
Timestamp:
04/22/2005 12:54:10 AM (20 years ago)
Author:
matt
Message:

Foundations for tagging

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-admin/upgrade-schema.php

    r77 r78  
    6262  PRIMARY KEY  (user_id),
    6363  UNIQUE KEY username (username)
    64 );";
     64);
     65CREATE TABLE $bbdb->tags (
     66  tag_id bigint(20) unsigned NOT NULL auto_increment,
     67  tag varchar(30) NOT NULL default '',
     68  raw_tag varchar(50) NOT NULL default '',
     69  PRIMARY KEY  (id)
     70);
     71CREATE TABLE $bbdb->tagged (
     72  tag_id bigint(20) unsigned NOT NULL default '0',
     73  user_id bigint(20) unsigned NOT NULL default '0',
     74  topic_id bigint(20) unsigned NOT NULL default '0',
     75  tagged_on datetime NOT NULL default '0000-00-00 00:00:00',
     76  PRIMARY KEY (`tag_id`,`user_id`,`topic_id`),
     77  KEY `tag_id_index` (`tag_id`),
     78  KEY `user_id_index` (`user_id`),
     79  KEY `topic_id_index` (`topic_id`)
     80);
     81";
    6582
    6683function dbDelta($queries, $execute = true) {
  • trunk/bb-settings.php

    r61 r78  
    1919else
    2020    require( BBPATH . '/bb-includes/db.php');
     21
     22$plugins = glob( BBPATH . '/bb-plugins/*.php');
     23if ( $plugins ) : foreach ( $plugins as $plugin ) :
     24    echo $plugin;
     25endforeach; endif;
     26
    2127require( BBPATH . '/bb-includes/functions.php');
    2228require( BBPATH . '/bb-includes/formatting-functions.php');
     
    2834$bbdb->topics  = $table_prefix . 'topics';
    2935$bbdb->users   = $table_prefix . 'users';
     36$bbdb->tags    = $table_prefix . 'tags';
     37$bbdb->tagged  = $table_prefix . 'tagged';
    3038
    3139if ( defined('CUSTOM_USER_TABLE') )
Note: See TracChangeset for help on using the changeset viewer.