DDC-2897: SchemaTool->update() deletes all tables that not belongs to the schema #3654

Open
doctrinebot opened this Issue Jan 9, 2014 · 0 comments

2 participants

@doctrinebot

Jira issue originally created by user doev:

$tool = new \Doctrine\ORM\Tools\SchemaTool($em);
$tool->updateSchema($em->getMetadataFactory()->getAllMetadata());

=> all Tables that not belong to the schema are gone. If you use the commandline tool for update, tables that not belong to the schema are not touched.

@beberlei beberlei was assigned by doctrinebot Dec 6, 2015
@doctrinebot doctrinebot added the Bug label Dec 7, 2015
@nanasess nanasess added a commit to nanasess/eccube-api that referenced this issue Apr 15, 2016
@nanasess nanasess Scope をチェックボックスで選択できるよう修正
- SchemaTool::updateSchema() で Foreign key が追加されないため, 新たに migration ファイルを作成せず、元の migration ファイルに処理を追加
  - see doctrine/doctrine2#3654
- アップデートする場合は uninstall/install が必要
189b742
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment