Backport(バックポート) #527
Failed install when there is empty DB (空のDBが存在する時にインストールに失敗する。)
100%
Description
Overview (概要)¶
Failed install when there is empty DB.
(空のDBが存在する時にインストールに失敗する。)
Causes (原因)¶
When there is a config/database.yml and you install the new plugin, opPlugin:install task is written in sns_config table.
However, the error occurs if the table doesn't exist.
(config/database.yml が存在し、新しいプラグインをインストールしたときに、
opPlugin:installタスクはsns_configテーブルに書き込みを行います。
しかし、そのテーブルが存在しないならば、エラーが発生します。)
Source (報告元)¶
Related issues
Associated revisions
fixed opPlugin:intall task doesn't catch exception when there is not DB (fixes #527;BP from #518)
fixed opPlugin:install task to check the existence of the 'sns_config' table (fixes #527;BP from #518)
History
#1
Updated by Shogo Kawahara over 12 years ago
- Status changed from New(新規) to Pending Review(レビュー待ち)
- % Done changed from 0 to 50
更新履歴commit:"782911b9fb49160d8e4e1ce0eeb0ec0f73b496cf"で適用されました。
#2
Updated by Kousuke Ebihara over 12 years ago
- Status changed from Pending Review(レビュー待ち) to Rejected(差し戻し)
すべての例外をシャットアウトしてしまうのは本当に問題があった場合に危険であるのと、問題がない状態にも関わらずプラグインのインストール後に常にメッセージが表示されてしまうような状態は好ましくありません。
Doctrine_Import::tableExists() メソッドを使用して必ずテーブルの存在チェックをし、テーブルが存在しない場合には DB への書き込み処理をパスするような実装に改めてください。
#3
Updated by Shogo Kawahara over 12 years ago
- Status changed from Rejected(差し戻し) to Pending Review(レビュー待ち)
更新履歴commit:"26256312f9a92323489f8014fc9261baa81b4c0a"で適用されました。
#4
Updated by Kousuke Ebihara over 12 years ago
- Status changed from Pending Review(レビュー待ち) to Pending Testing(テスト待ち)
#5
Updated by Mutsumi Imamura over 12 years ago
- Due date set to 2010-02-12
- Status changed from Pending Testing(テスト待ち) to Fixed(完了)
- % Done changed from 50 to 100
動作テストしました。問題ありません。