Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.2.0, 1.2.1
-
Fix Version/s: 1.2.3
-
Component/s: Migrations
-
Labels:None
-
Environment:Vanilla sandbox on version 1.2.1 and 1.2.0
both sqlite and mysql, so its not driver dependant
Description
Replicating the bug:
1. unzip vanilla sandbox.
2. create schema file with entity
3. run ./doctrine build-all
4. modify schema, add column to entity.
5. run ./doctrine generate-migrations-diff
Expected behaviour:
generates migration wich adds column to entity.
Real behaviour:
Drops entity from database
Similar issue:
http://groups.google.com/group/doctrine-user/browse_thread/thread/8b4a0fc0778a388a/79446784623b8497?lnk=gst&q=1.2.1+migration
This issue is NOT fixed for certain configurations of Doctrine (namely PEAR).
See http://www.doctrine-project.org/jira/browse/DC-475