Skip to:
Content

bbPress.org


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

Foundations for tagging

File:
1 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) {
Note: See TracChangeset for help on using the changeset viewer.