update_020101.php 513 B

12345678910111213141516171819
  1. <?php
  2. ###
  3. # @name Update to version 2.1.1
  4. # @author Tobias Reich
  5. # @copyright 2014 by Tobias Reich
  6. ###
  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. ?>