- Timestamp:
- Dec 9, 2010, 10:46:14 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/NBC_UserAdvManager/trunk/include/upgradedb.inc.php
r7955 r8065 2 2 /** 3 3 * @author Eric@piwigo.org 4 * @copyright 2010 5 * 4 * 6 5 * Upgrade processes for old plugin version 7 6 * Called from maintain.inc.php on plugin activation … … 96 95 function upgrade_212_213() 97 96 { 98 /* Create missing table */ 97 // Create missing table 99 98 $query = " 100 99 ALTER TABLE ".USER_CONFIRM_MAIL_TABLE." … … 104 103 pwg_query($query); 105 104 106 /* Upgrade plugin configuration */ 105 // Upgrade plugin configuration 107 106 global $conf; 108 107 … … 164 163 global $conf; 165 164 166 /* Changing parameter name */ 165 // Changing parameter name 167 166 $q = ' 168 167 UPDATE '.CONFIG_TABLE.' … … 179 178 pwg_query($q); 180 179 181 /* Upgrading ConfirmMail options */ 180 // Upgrading ConfirmMail options 182 181 $query = ' 183 182 SELECT value … … 214 213 global $conf; 215 214 216 /* Upgrading options */ 215 // Upgrading options 217 216 $query = ' 218 217 SELECT value … … 268 267 } 269 268 270 /* upgrade from 2.15. 9to 2.16.0 */269 /* upgrade from 2.15.x to 2.16.0 */ 271 270 /* ***************************** */ 272 function upgrade_215 9_2160()271 function upgrade_215_2160() 273 272 { 274 273 global $conf; 275 274 276 /* Upgrading options */ 275 // Upgrading options 277 276 $query = ' 278 277 SELECT value … … 291 290 $Newconf_UAM[25] = 'Sorry, your account has been deleted due to a too long time passed since your last visit.'; 292 291 $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'; 293 294 294 295 $update_conf = serialize($Newconf_UAM); … … 306 307 $query = ' 307 308 INSERT INTO '.CONFIG_TABLE.' (param, value, comment) 308 VALUES ("UserAdvManager_Version","2.1 5.8","UAM version check")309 VALUES ("UserAdvManager_Version","2.16.0","UAM version check") 309 310 ;'; 310 311
Note: See TracChangeset
for help on using the changeset viewer.