Ignore:
Timestamp:
Sep 27, 2011, 9:28:27 PM (13 years ago)
Author:
Eric
Message:
  • Fix database upgrade error
  • Improve code documentation
  • Version 2.30.0 hard coded
File:
1 edited

Legend:

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

    r12239 r12247  
    522522
    523523  // Piwigo's native tables modifications for password reset function - Add pwdreset column
    524   $q = '
     524  $query = '
     525SHOW COLUMNS FROM '.USERS_TABLE.'
     526LIKE "UAM_pwdreset"
     527;';
     528 
     529  $result = pwg_query($query);
     530
     531  if(!pwg_db_fetch_row($result))
     532  {
     533    $q = '
    525534ALTER TABLE '.USERS_TABLE.'
    526535ADD UAM_pwdreset enum("true","false")
    527536;';
    528   pwg_query($q);
     537    pwg_query($q);
     538  }
    529539}
    530540?>
Note: See TracChangeset for help on using the changeset viewer.