123456789101112131415161718192021 |
- <?php
- ###
- # @name Update to version 2.1.1
- # @author Tobias Reich
- # @copyright 2014 by Tobias Reich
- ###
- $result = $database->query("ALTER TABLE `lychee_settings` CHANGE `value` `value` VARCHAR( 200 ) NULL DEFAULT ''");
- if (!$result) {
- Log::error($database, 'update_020101', __LINE__, 'Could not update database (' . $database->error . ')');
- return false;
- }
- $result = $database->query("UPDATE lychee_settings SET value = '020101' WHERE `key` = 'version';");
- if (!$result) {
- Log::error($database, 'update_020101', __LINE__, 'Could not update database (' . $database->error . ')');
- return false;
- }
- ?>
|