Ignore:
Timestamp:
Apr 21, 2008, 12:20:20 AM (17 years ago)
Author:
rvelices
Message:
  • merged function ordering() with update_global_rank() and also optimized the queries
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install/upgrade_1.3.1.php

    r2299 r2306  
    6868  ADD COLUMN commentable enum('true','false') NOT NULL default 'true'
    6969;",
    70  
     70
    7171  "
    7272ALTER TABLE phpwebgallery_categories
     
    8888  SET date_temp = date
    8989;",
    90  
     90
    9191  "
    9292ALTER TABLE phpwebgallery_comments
     
    123123  SET date_temp = date
    124124;",
    125  
     125
    126126  "
    127127ALTER TABLE phpwebgallery_history
     
    204204  ADD INDEX images_i5 (date_creation)
    205205;",
    206  
     206
    207207  "
    208208ALTER TABLE phpwebgallery_sessions
     
    219219  SET expiration_temp = expiration
    220220;",
    221  
     221
    222222  "
    223223ALTER TABLE phpwebgallery_sessions
     
    234234  DROP COLUMN expiration_temp
    235235;",
    236  
     236
    237237  "
    238238ALTER TABLE phpwebgallery_sites
     
    248248DROP TABLE phpwebgallery_user_category
    249249;",
    250  
     250
    251251  "
    252252ALTER TABLE phpwebgallery_users
     
    273273  ADD UNIQUE users_ui1 (username)
    274274;",
    275  
     275
    276276  "
    277277CREATE TABLE phpwebgallery_rate (
     
    339339{
    340340  $existing_indexes = array();
    341  
     341
    342342  $query = '
    343343SHOW INDEX
     
    526526
    527527// refresh calculated datas
    528 ordering();
    529528update_global_rank();
    530529update_category();
     
    584583  array(
    585584    'all sub-categories of private categories become private',
    586    
     585
    587586    'user permissions and group permissions have been erased',
    588587
Note: See TracChangeset for help on using the changeset viewer.