I had earlier added a new field to the civicrm_event table called "enable_tracking". I achieved this by adding a new field to the xml/schema/Event/Event.xml file. After this I ran the regen.sh script. Everything worked fine.
Now I wanted to remove this field from the civicrm_event table, so I removed the field from the Event.xml file and ran regen.sh again. However I am getting an error when running this script.
+ echo 'Populating database with dataset - civicrm_generated.mysql' Populating database with dataset - civicrm_generated.mysql + mysql -udrupalclea_vpj3r -XXXXXXXXXXXXX -h 127.0.0.1 -P 3306 drupalclea_vpj3r ERROR 1054 (42S22) at line 462: Unknown column 'enable_tracking' in 'field list'
One hack would be to manually edit the civicrm_generated.mysql file. Is there any other way?