modules

CTOOLS 7.X-1.12 TO 7.X-1.13 更新出錯

CHAOS TOOL SUITE (CTOOLS) 7.X-1.12 TO 7.X-1.13 更新出錯

Failed: PDOException : SQLSTATE[42000]: Syntax error or access violation: 1071 Specified key was too long; max key length is 1000 bytes: ALTER TABLE {ctools_object_cache} CHANGE `name` `name` VARCHAR(255) NOT NULL; Array ( ) in db_change_field() (lige 3076 in /Sites/example.com/includes/database/database.inc)

我發現問題只有出現在D6 to D7的站


解決的方式,使用phpMyadmin執行sql
ALTER TABLE `ctools_object_cache` ENGINE = InnoDB;

 

然後再重跑次updatedb,就不會再出現錯誤訊息了