プロジェクト

全般

プロフィール

Enhancement(機能追加・改善) #1026

Add option not to recreate DB to openpne:install (openpne:install 時に DB を作り直さないオプションを追加する)

Kousuke Ebiharaほぼ14年前に追加. ほぼ14年前に更新.

ステータス:
Fixed(完了)
優先度:
Normal(通常)
担当者:
対象バージョン:
開始日:
2010-05-06
期日:
進捗率:

100%


説明

Overview (概要)

Add option not to recreate DB to openpne:install

openpne:install 時に DB を作り直さないオプションを追加する

Spec (仕様)

Add "--non-recreate-db" option to openpne:install for non-recreate DB installing.

If the option is specified, OpenPNE delete tables with considering foreign keys in existing DB.

DB を作り直さないインストールのために "--non-recreate-db" オプションを openpne:install に追加する。

このオプションが指定された場合、 OpenPNE は既に存在している DB 内のテーブルを外部キーを考慮して削除する。

関係しているリビジョン

リビジョン 06734d60 (差分)
Kousuke Ebiharaほぼ14年前に追加

added an option not to recreate DB in openpne:install (fixes #1026)

リビジョン 86a13249 (差分)
Kousuke Ebiharaほぼ14年前に追加

fixed table prefix will make duplicated keys in long-named keys (refs #1026)

リビジョン b76f9e89 (差分)
Kousuke Ebiharaほぼ14年前に追加

added notes to the description of using table_prefix configuration (fixes #1026)

リビジョン 7e304471 (差分)
Kousuke Ebiharaほぼ14年前に追加

renamed opDoctrineFormatter to opDoctrineModule_Formatter because Doctrine requires *_Formatter style class name (fixes #1026)

履歴

#1 Kousuke Ebiharaほぼ14年前に更新

  • ステータスAccepted(着手) から Pending Review(レビュー待ち) に変更
  • 進捗率0 から 50 に変更

更新履歴 06734d60364893be2f35140002d1417517e002f7 で適用されました。

#2 Kousuke Ebiharaほぼ14年前に更新

  • ステータスPending Review(レビュー待ち) から Pending Testing(テスト待ち) に変更

#3 Kiwa Sakaiほぼ14年前に更新

  • ステータスPending Testing(テスト待ち) から Rejected(差し戻し) に変更

インストール時に以下のようなエラーが発生しました。確認をお願いします。

$ symfony openpne:install --non-recreate-db
  SQLSTATE[HY000]: General error: 1005 Can't create table './database/#sql-5a8a_69bdf.frm' (errno: 121). Failing Query: "ALTER TABLE test_community_topic_comment ADD CONSTRAINT tcti_3 FOREIGN KEY (community_topic_id) REFERENCES test_community_topic(id) ON DELETE CASCADE". Failing Query: ALTER TABLE test_community_topic_comment ADD CONSTRAINT tcti_3 FOREIGN KEY (community_topic_id) REFERENCES test_community_topic(id) ON DELETE CASCADE

手順

1. database1 にprefix: なし でOpenPNEをインストールする
2. database1 にprefix: test_ でOpenPNEをインストールする
3. database1 にprefix: test2_ でOpenPNEをインストールする
4. database1 に作成したはずのprefix: test_ のテーブルが消えてしまっているため、2 をもう一度実行する
5. 4 実行時に上のエラーが発生する(test_ ・test2_ ともにテーブルは存在する)

#4 Kousuke Ebiharaほぼ14年前に更新

対応のために http://www.doctrine-project.org/jira/browse/DC-673 を先行して取り込みます

#5 Kousuke Ebiharaほぼ14年前に更新

  • ステータスRejected(差し戻し) から Pending Review(レビュー待ち) に変更

更新履歴 b76f9e8983f3bdb1d6442cb4ac830c64e59bf7be で適用されました。

#6 Kousuke Ebiharaほぼ14年前に更新

  • ステータスPending Review(レビュー待ち) から Pending Testing(テスト待ち) に変更
  • 対応のために Doctrine のバグを先行して修正
  • プレフィックスによって外部キーが縮められたときに重複扱いになる現象を修正
  • 「プレフィックスは複数の OpenPNE を同居させることを目的に作られていない」点の注意書きをドキュメントに追記

をおこないました。

#7 Kousuke Ebiharaほぼ14年前に更新

  • ステータスPending Testing(テスト待ち) から Pending Review(レビュー待ち) に変更

更新履歴 7e3044715558083ff47257bcc25a91fbe7f00fe2 で適用されました。

#8 Kousuke Ebiharaほぼ14年前に更新

  • ステータスPending Review(レビュー待ち) から Pending Testing(テスト待ち) に変更

fixes キーワードで status が元に戻ってました

#9 Kiwa Sakaiほぼ14年前に更新

  • ステータスPending Testing(テスト待ち) から Fixed(完了) に変更
  • 進捗率50 から 100 に変更

他の形式にエクスポート: Atom PDF