update_020101.php 560 B

1234567891011121314151617181920
  1. <?php
  2. ###
  3. # @name Update to version 2.1.1
  4. # @copyright 2015 by Tobias Reich
  5. ###
  6. if (!defined('LYCHEE')) exit('Error: Direct access is not allowed!');
  7. $query = Database::prepare($database, "ALTER TABLE `?` CHANGE `value` `value` VARCHAR( 200 ) NULL DEFAULT ''", array(LYCHEE_TABLE_SETTINGS));
  8. $result = $database->query($query);
  9. if (!$result) {
  10. Log::error($database, 'update_020101', __LINE__, 'Could not update database (' . $database->error . ')');
  11. return false;
  12. }
  13. # Set version
  14. if (Database::setVersion($database, '020101')===false) return false;
  15. ?>