Changeset 395 for branches

Show
Ignore:
Timestamp:
05/08/06 20:53:45 (3 years ago)
Author:
stefan
Message:

First commit for tag support which is nowhere near being complete but this is a start.

  • Adding plog-tag-functions.php which contains functions for tag manipulation.
  • Modified _install.php and _update.php to create/modify the database structure needed for tagging.
  • Added a unittests directory which includes some unit tests for the tagging code.
  • Added the phpunit library from the PEAR framework. This library was put inside the unittests directory since it is not needed for normal operations.
Location:
branches/plogger-with-tags
Files:
23 added
2 modified

Legend:

Unmodified
Added
Removed
  • branches/plogger-with-tags/_install.php

    r373 r395  
    255255                  `tag` char(50) NOT NULL default '', 
    256256                  `tagdate` datetime NOT NULL default '0000-00-00 00:00:00', 
    257                   `formatted` char(50) NOT NULL default '', 
     257                  `urlified` char(50) NOT NULL default '', 
    258258                  PRIMARY KEY  (`id`), 
    259259                  KEY `tag` (`tag`), 
    260                   KEY `formatted` (`formatted`) 
     260                  KEY `urlified` (`urlified`) 
    261261                ) Type=MyISAM $default_charset"; 
    262262                mysql_query($query) or die(mysql_error().'<br /><br />'. $query); 
  • branches/plogger-with-tags/_upgrade.php

    r373 r395  
    133133        `tag` char(50) NOT NULL default '', 
    134134        `tagdate` datetime NOT NULL default '0000-00-00 00:00:00', 
    135         `formatted` char(50) NOT NULL default '', 
     135        `urlified` char(50) NOT NULL default '', 
    136136        PRIMARY KEY  (`id`), 
    137137        KEY `tag` (`tag`), 
    138         KEY `formatted` (`formatted`) 
     138        KEY `urlified` (`urlified`) 
    139139"); 
    140140