Changeset 2333 for trunk/install


Ignore:
Timestamp:
May 6, 2008, 3:04:58 AM (16 years ago)
Author:
rvelices
Message:
  • remove some unnecessary db columns (#history_summary.id, #history.year, month, day and hour)
Location:
trunk/install
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install/phpwebgallery_structure.sql

    r2324 r2333  
    117117  `date` date NOT NULL default '0000-00-00',
    118118  `time` time NOT NULL default '00:00:00',
    119   `year` smallint(4) NOT NULL default '0',
    120   `month` tinyint(2) NOT NULL default '0',
    121   `day` tinyint(2) NOT NULL default '0',
    122   `hour` tinyint(2) NOT NULL default '0',
    123119  `user_id` smallint(5) NOT NULL default '0',
    124120  `IP` varchar(15) NOT NULL default '',
     
    139135DROP TABLE IF EXISTS `phpwebgallery_history_summary`;
    140136CREATE TABLE `phpwebgallery_history_summary` (
    141   `id` varchar(13) NOT NULL default '',
    142137  `year` smallint(4) NOT NULL default '0',
    143138  `month` tinyint(2) default NULL,
     
    145140  `hour` tinyint(2) default NULL,
    146141  `nb_pages` int(11) default NULL,
    147   PRIMARY KEY  (`id`)
     142  UNIQUE KEY history_summary_ymdh (`year`,`month`,`day`,`hour`)
    148143) TYPE=MyISAM;
    149144
Note: See TracChangeset for help on using the changeset viewer.