diff --git a/setup/update_scripts/update-drom-2.4-to-2.4.1.php b/setup/update_scripts/update-drom-2.4-to-2.4.1.php index 15bf9d9e..c3d19974 100644 --- a/setup/update_scripts/update-drom-2.4-to-2.4.1.php +++ b/setup/update_scripts/update-drom-2.4-to-2.4.1.php @@ -3,12 +3,13 @@ * @Author: printempw * @Date: 2016-04-04 08:47:35 * @Last Modified by: printempw - * @Last Modified time: 2016-04-04 08:48:06 + * @Last Modified time: 2016-04-05 14:32:42 */ if (!defined('BASE_DIR')) exit('请运行 /setup/update.php 来升级'); if (Option::get('current_version') == "2.4") { Option::set('current_version', '2.4.1'); + if (Option::get('encryption') == "") Option::set('encryption', 'MD5'); echo "已成功升级至 v2.4.1"; } diff --git a/setup/update_scripts/update-from-2.4.1-to-2.4.2.php b/setup/update_scripts/update-from-2.4.1-to-2.4.2.php new file mode 100644 index 00000000..0ba339bb --- /dev/null +++ b/setup/update_scripts/update-from-2.4.1-to-2.4.2.php @@ -0,0 +1,28 @@ +query($sql); + } + + Option::set('current_version', '2.4.2'); + echo "已成功升级至 v2.4.2"; +}