first step upgrade script
corrected script for migration automatic