Skip to content

Commit

Permalink
Upgrade 3.71
Browse files Browse the repository at this point in the history
  • Loading branch information
yama committed Feb 15, 2015
1 parent 2f82f32 commit e8edb93
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
5 changes: 3 additions & 2 deletions nucleus/upgrades/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,9 @@
elseif (!upgrade_checkinstall(350)) $current = 340;
elseif (!upgrade_checkinstall(360)) $current = 350;
elseif (!upgrade_checkinstall(370)) $current = 360;
else $current = 370;
if ($current == 370) {
elseif (!upgrade_checkinstall(371)) $current = 370;
else $current = 371;
if ($current == 371) {
?>
<p class="ok">自動でできるアップグレードはありません。データベースは既に最新の Nucleus 用にアップデートされています。</p>
<?php
Expand Down
3 changes: 3 additions & 0 deletions nucleus/upgrades/upgrade.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@
case 360:
include('upgrade3.7.php');
upgrade_do370();
case 370:
include('upgrade3.7.php');
upgrade_do371();
break;
default:
echo "<li>エラー! 実行すべきアップデートはありません</li>";
Expand Down
11 changes: 10 additions & 1 deletion nucleus/upgrades/upgrade3.7.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@
* (see nucleus/documentation/index.html#license for more info)
*/

function upgrade_do371() {

if (upgrade_checkinstall(371))
return 'インストール済みです';

// 3.70 -> 3.71
// update database version
update_version('371');
}

function upgrade_do370() {

if (upgrade_checkinstall(370))
Expand All @@ -30,4 +40,3 @@ function upgrade_do370() {
// update database version
update_version('370');
}

0 comments on commit e8edb93

Please sign in to comment.