Changeset 1119 for trunk/install


Ignore:
Timestamp:
Apr 3, 2006, 12:26:19 AM (18 years ago)
Author:
plg
Message:

improvement: tags replace keywords. Better data model, less
limitations. Each image can be associated to as many tag as needed. Tags can
contain non ASCII characters. Oriented navigation with tags by association.

Location:
trunk/install
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install/phpwebgallery_structure.sql

    r1116 r1119  
    1 -- MySQL dump 9.11
    21-- MySQL dump 9.11
    32--
     
    147146
    148147--
     148-- Table structure for table `phpwebgallery_image_tag`
     149--
     150
     151DROP TABLE IF EXISTS `phpwebgallery_image_tag`;
     152CREATE TABLE `phpwebgallery_image_tag` (
     153  `image_id` mediumint(8) unsigned NOT NULL default '0',
     154  `tag_id` smallint(5) unsigned NOT NULL default '0',
     155  PRIMARY KEY  (`image_id`,`tag_id`)
     156) TYPE=MyISAM;
     157
     158--
    149159-- Table structure for table `phpwebgallery_images`
    150160--
     
    164174  `width` smallint(9) unsigned default NULL,
    165175  `height` smallint(9) unsigned default NULL,
    166   `keywords` varchar(255) default NULL,
    167   `storage_category_id` smallint(5) unsigned default NULL,
    168176  `representative_ext` varchar(4) default NULL,
    169177  `date_metadata_update` date default NULL,
     
    173181  PRIMARY KEY  (`id`),
    174182  KEY `images_i2` (`date_available`),
    175   KEY `images_i1` (`storage_category_id`),
    176183  KEY `images_i3` (`average_rate`),
    177184  KEY `images_i4` (`hit`),
     
    230237
    231238--
     239-- Table structure for table `phpwebgallery_tags`
     240--
     241
     242DROP TABLE IF EXISTS `phpwebgallery_tags`;
     243CREATE TABLE `phpwebgallery_tags` (
     244  `id` smallint(5) unsigned NOT NULL auto_increment,
     245  `name` varchar(255) binary NOT NULL default '',
     246  `url_name` varchar(255) binary NOT NULL default '',
     247  PRIMARY KEY  (`id`)
     248) TYPE=MyISAM;
     249
     250--
    232251-- Table structure for table `phpwebgallery_upgrade`
    233252--
     
    261280  `need_update` enum('true','false') NOT NULL default 'true',
    262281  `forbidden_categories` text,
    263   `nb_total_images` mediumint(8) unsigned,
     282  `nb_total_images` mediumint(8) unsigned default NULL,
    264283  PRIMARY KEY  (`user_id`)
    265284) TYPE=MyISAM;
     
    297316  `nb_image_line` tinyint(1) unsigned NOT NULL default '5',
    298317  `nb_line_page` tinyint(3) unsigned NOT NULL default '3',
    299   `status` enum('webmaster', 'admin', 'normal', 'generic', 'guest') NOT NULL default 'guest',
     318  `status` enum('webmaster','admin','normal','generic','guest') NOT NULL default 'guest',
    300319  `adviser` enum('true','false') NOT NULL default 'false',
    301320  `language` varchar(50) NOT NULL default 'english',
Note: See TracChangeset for help on using the changeset viewer.