update_020101.php 489 B

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