Project

General

Profile

Actions

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

closed

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

Added by Kousuke Ebihara over 14 years ago. Updated over 14 years ago.

Status:
Fixed(完了)
Priority:
Normal(通常)
Target version:
Start date:
2010-05-06
Due date:
% Done:

100%

Estimated time:

Description

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 内のテーブルを外部キーを考慮して削除する。

Actions #1

Updated by Kousuke Ebihara over 14 years ago

  • Status changed from Accepted(着手) to Pending Review(レビュー待ち)
  • % Done changed from 0 to 50

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

Actions #2

Updated by Kousuke Ebihara over 14 years ago

  • Status changed from Pending Review(レビュー待ち) to Pending Testing(テスト待ち)
Actions #3

Updated by Kiwa Sakai over 14 years ago

  • Status changed from Pending Testing(テスト待ち) to 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_ ともにテーブルは存在する)

Actions #4

Updated by Kousuke Ebihara over 14 years ago

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

Actions #5

Updated by Kousuke Ebihara over 14 years ago

  • Status changed from Rejected(差し戻し) to Pending Review(レビュー待ち)

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

Actions #6

Updated by Kousuke Ebihara over 14 years ago

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

をおこないました。

Actions #7

Updated by Kousuke Ebihara over 14 years ago

  • Status changed from Pending Testing(テスト待ち) to Pending Review(レビュー待ち)

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

Actions #8

Updated by Kousuke Ebihara over 14 years ago

  • Status changed from Pending Review(レビュー待ち) to Pending Testing(テスト待ち)

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

Actions #9

Updated by Kiwa Sakai over 14 years ago

  • Status changed from Pending Testing(テスト待ち) to Fixed(完了)
  • % Done changed from 50 to 100
Actions

Also available in: Atom PDF