update_020101.php 607 B

123456789101112131415161718192021
  1. <?php
  2. ###
  3. # @name Update to version 2.1.1
  4. # @author Tobias Reich
  5. # @copyright 2014 by Tobias Reich
  6. ###
  7. $result = $database->query("ALTER TABLE `lychee_settings` CHANGE `value` `value` VARCHAR( 200 ) NULL DEFAULT ''");
  8. if (!$result) {
  9. Log::error($database, 'update_020101', __LINE__, 'Could not update database (' . $database->error . ')');
  10. return false;
  11. }
  12. $result = $database->query("UPDATE lychee_settings SET value = '020101' WHERE `key` = 'version';");
  13. if (!$result) {
  14. Log::error($database, 'update_020101', __LINE__, 'Could not update database (' . $database->error . ')');
  15. return false;
  16. }
  17. ?>