restructure migration scripts