Search code examples
mysqlormdatabase-migrationpropel

Propel diff command is not working as expected


When I use propel diff command, it makes a migration but it's not as expected. If I add a new field to the database, it generates a drop migration. So the up function contains:

ALTER TABLE `mytable` DROP `field`

Why Propel is doing so? Am I missing something?


Solution

  • I found there were a problem in how I was using Propel. I should first change schema.xml file then call propel diff command.