備忘ログ
Forum3Dで使用しているSMFを1.1.7から1.1.8にアップデートした際の作業メモ。
(1)アップデータ(smf_1-1-8_upgrade.zip)をダウンロードして展開。
(2)フォーラムのデータ(FTP)および(管理メニューから)データベースをバックアップ。
(3)インストール済みの拡張を以下の順でアンインストール。
(4)アップデータファイルをアップロード(上書き)
(5)/upgrade.phpを実行(注)
(6)拡張を以下の順でインストール
(注)CORESERVERの場合アップグレード実行中に以下のSQLエラーが出るので、
Upgrading…
Updating Settings.php… Successful.
Updating and creating indexes…
Updating indexes on “messages”… done.
Updating table indexes… done.
Reordering boards and categories… done.
Updating indexes and data on “smileys”… Unsuccessful!
This query:ALTER TABLE smf_smileys
ORDER BY LENGTH(code) DESC;Caused the error:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘LENGTH(code) DESC’ at line 2
こちらの記事に従ってupgrade_1-1.sqlを修正する。
ALTER TABLE {$db_prefix}smileys
ORDER BY LENGTH(code) DESC;
を次のように書き換える。
ALTER TABLE {$db_prefix}smileys
ORDER BY code DESC;