Adding custom tables

If the database migration does not include all the tables you need to migrate, just create a new package to include the rest or add few lines of code to existing packages.

To add custom tables to the migration, add the following function to the package’s controller (/packages/your_package_handle/controller.php) from which you want to control the custom tables:

 public function getDatabaseMigrationTables() { 
 return array("MyCorrectTableName", "MyAnotherCorrectTableName"); 

The migration script will automatically go through these for each installed package, so these few lines are the only thing you need to worry about.