Changing module and its data to one app to another app in same site

I was working on the Day 4 assignment and needed to create a module named “Airplane Shop” inside the “Airplane Mode” app. However, instead of creating it as a module, I mistakenly created a separate app and module with the same name (“Airplane Shop”) and created all the required DocTypes inside this app.

Now, when I go to Module Def in the Frappe UI and try to change the App Name of the Airplane Shop module to “Airplane Mode”, it only creates a module with the same name inside “Airplane Mode”, but the data (DocTypes and other linked items) from the “Airplane Shop” app does not appear in this module.

I have also run bench migrate, but it hasn’t resolved the issue.

Could you please guide me on how to move the existing DocTypes and data from the “Airplane Shop” app into the newly created “Airplane Shop” module under the “Airplane Mode” app and make it work as intended?

Just copy paste the doctype folders and other reports or any fixtures that you created for the new app into the new module.

You might need to update any custom API end point’s path if you used frm/frappe call in custom js files from the old app path to the new module path.

Then a migrate should do the trick.