- Timestamp:
- Apr 7, 2011, 10:53:21 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/UserAdvManager/branches/2.20/include/upgradedb.inc.php
r9909 r10145 19 19 // | Upgrading database from old plugin versions | 20 20 // +----------------------------------------------------------+ 21 22 23 /* *************************************** */ 24 /* Update plugin version in conf table */ 25 /* Used everytime a new version is updated */ 26 /* even if no database upgrade is needed */ 27 /* *************************************** */ 28 function UAM_version_update() 29 { 30 // Get current plugin version 31 $plugin = PluginInfos(UAM_PATH); 32 $version = $plugin['version']; 33 34 // Update plugin version 35 $query = ' 36 UPDATE '.CONFIG_TABLE.' 37 SET value="'.$version.'" 38 WHERE param="UserAdvManager_Version" 39 LIMIT 1 40 ;'; 41 42 pwg_query($query); 43 } 44 21 45 22 46 /* upgrade from branch 2.10 to 2.11 */ … … 153 177 } 154 178 179 155 180 /* upgrade from branch 2.14 to 2.15 */ 156 181 /* ******************************** */ … … 202 227 upgrade_2153_2154(); 203 228 } 229 204 230 205 231 /* upgrade from 2.15.3 to 2.15.4 */ … … 263 289 } 264 290 291 265 292 /* upgrade from 2.15.x to 2.16.0 */ 266 293 /* ***************************** */ … … 316 343 global $conf; 317 344 318 $uam_new_version = "2.20.0";319 320 345 // Upgrading options 321 346 $query = ' … … 348 373 pwg_query($query); 349 374 350 // Update plugin version 351 $query = ' 352 UPDATE '.CONFIG_TABLE.' 353 SET value="'.$uam_new_version.'" 354 WHERE param="UserAdvManager_Version" 355 LIMIT 1 356 ;'; 357 358 pwg_query($query); 359 360 // Create new UAM entry in plugins table 375 // Create new UAM entry in plugins table 376 $uam_new_version = "2.20.0"; 377 361 378 $query = ' 362 379 INSERT INTO '.PLUGINS_TABLE.' (id, state, version)
Note: See TracChangeset
for help on using the changeset viewer.