Ignore:
Timestamp:
Dec 9, 2010, 10:46:14 PM (13 years ago)
Author:
Eric
Message:

Pre Branch 2.16 modifications in trunk:

  • Automation of user cleanup and downgrade tasks
File:
1 edited

Legend:

Unmodified
Added
Removed
  • extensions/NBC_UserAdvManager/trunk/include/upgradedb.inc.php

    r7955 r8065  
    22/**
    33 * @author Eric@piwigo.org
    4  * @copyright 2010
    5  *
     4 * 
    65 * Upgrade processes for old plugin version
    76 * Called from maintain.inc.php on plugin activation
     
    9695function upgrade_212_213()
    9796{
    98 /* Create missing table */
     97  // Create missing table
    9998  $query = "
    10099ALTER TABLE ".USER_CONFIRM_MAIL_TABLE."
     
    104103  pwg_query($query);
    105104
    106 /* Upgrade plugin configuration */
     105  // Upgrade plugin configuration
    107106        global $conf;
    108107
     
    164163  global $conf;
    165164
    166 /* Changing parameter name */
     165  // Changing parameter name
    167166  $q = '
    168167UPDATE '.CONFIG_TABLE.'
     
    179178  pwg_query($q);
    180179
    181 /* Upgrading ConfirmMail options */
     180  // Upgrading ConfirmMail options
    182181  $query = '
    183182SELECT value
     
    214213  global $conf;
    215214
    216 /* Upgrading options */
     215  // Upgrading options
    217216  $query = '
    218217SELECT value
     
    268267}
    269268
    270 /* upgrade from 2.15.9 to 2.16.0 */
     269/* upgrade from 2.15.x to 2.16.0 */
    271270/* ***************************** */
    272 function upgrade_2159_2160()
     271function upgrade_215_2160()
    273272{
    274273  global $conf;
    275274
    276 /* Upgrading options */
     275  // Upgrading options
    277276  $query = '
    278277SELECT value
     
    291290  $Newconf_UAM[25] = 'Sorry, your account has been deleted due to a too long time passed since your last visit.';
    292291  $Newconf_UAM[26] = 'Sorry, your account has been deprecated due to a too long time passed since your last visit. Please, use the following link to revalidate your account.';
     292  $Newconf_UAM[27] = '-1';
     293  $Newconf_UAM[28] = '-1';
    293294 
    294295  $update_conf = serialize($Newconf_UAM);
     
    306307  $query = '
    307308INSERT INTO '.CONFIG_TABLE.' (param, value, comment)
    308 VALUES ("UserAdvManager_Version","2.15.8","UAM version check")
     309VALUES ("UserAdvManager_Version","2.16.0","UAM version check")
    309310  ;';
    310311 
Note: See TracChangeset for help on using the changeset viewer.