I have a local plugin which has around 10 tables custom created and all the table structure is updated in the install.xml file in that plugin. There is a requirement for a redesigned plugin and when the plugin is installed, it should be connected with the database tables that the previous plugin has created. And after that previous plugin will be deleted.
My question is, when I copy the previous plugins install.xml file contents to the new file it triggers an error while upgrading the new plugin since the defined tables are already there. Is there a way to easily migrate this content into the install.php file so I can use a if condition to cover up the database contents with the version number so that the content wont be executed when the plugin is installing. Moving those content manually will be an huge effort since it has around 10 custom created tables