Changeset 1027 for trunk/install.php


Ignore:
Timestamp:
Feb 6, 2006, 10:52:16 PM (18 years ago)
Author:
plg
Message:

improvement: upgrades id retrieving in include/common.inc.php and
upgrade_feed.php are now made by dedicated function
get_available_upgrade_ids.

bug fixed: after an installation, you had to play all available upgrades,
which was wrong. install.php inserts informations related to all available
upgrades at installation time. Thus avoiding automatic upgrades.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/install.php

    r860 r1027  
    339339;';
    340340    mysql_query($query);
     341
     342    // Available upgrades must be ignored after a fresh installation. To
     343    // make PWG avoid upgrading, we must tell it upgrades have already been
     344    // made.
     345    foreach (get_available_upgrade_ids() as $upgrade_id)
     346    {
     347      $query = '
     348INSERT INTO '.UPGRADE_TABLE.'
     349  (id, applied, description)
     350  VALUES
     351  ('.$upgrade_id.', NOW(), \'upgrade included in installation\')
     352';
     353      mysql_query($query);
     354    }
    341355  }
    342356}
Note: See TracChangeset for help on using the changeset viewer.