Changeset 1883 for trunk/install


Ignore:
Timestamp:
Mar 9, 2007, 5:28:49 PM (17 years ago)
Author:
plg
Message:

New: #images.high_filesize was added so that we can sum the filesizes in the
filtered history. #images.high_filesize is filled during metadata
synchronization.

Bug fixed: in getAttribute XML function, when asking "filesize", it was
returning high_filesize. The regex was too simple.

Location:
trunk/install
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install/phpwebgallery_structure.sql

    r1866 r1883  
    3939  `global_rank` varchar(255) default NULL,
    4040  `image_order` varchar(128) default NULL,
    41   `permalink` VARCHAR(64) default NULL,
    42   PRIMARY KEY  (`id`),
    43   KEY `categories_i2` (`id_uppercat`),
    44   UNIQUE KEY `categories_i3` (`permalink`)
     41  `permalink` varchar(64) default NULL,
     42  PRIMARY KEY  (`id`),
     43  UNIQUE KEY `categories_i3` (`permalink`),
     44  KEY `categories_i2` (`id_uppercat`)
    4545) TYPE=MyISAM;
    4646
     
    197197  `path` varchar(255) NOT NULL default '',
    198198  `storage_category_id` smallint(5) unsigned default NULL,
     199  `high_filesize` mediumint(9) unsigned default NULL,
    199200  PRIMARY KEY  (`id`),
    200201  KEY `images_i2` (`date_available`),
     
    211212DROP TABLE IF EXISTS `phpwebgallery_old_permalinks`;
    212213CREATE TABLE `phpwebgallery_old_permalinks` (
    213   `cat_id` smallint(5) unsigned NOT NULL,
    214   `permalink` VARCHAR(64) NOT NULL,
    215   `date_deleted` datetime NOT NULL,
     214  `cat_id` smallint(5) unsigned NOT NULL default '0',
     215  `permalink` varchar(64) NOT NULL default '',
     216  `date_deleted` datetime NOT NULL default '0000-00-00 00:00:00',
    216217  `last_hit` datetime default NULL,
    217218  `hit` int(10) unsigned NOT NULL default '0',
    218   PRIMARY KEY (`permalink`)
     219  PRIMARY KEY  (`permalink`)
    219220) TYPE=MyISAM;
    220221
Note: See TracChangeset for help on using the changeset viewer.