11 hours ago, musicmaster said:Maybe this file solves that problem?
it doesn't solve, and in my opinion is not a good solution, your are removing tables without PREFIX in your log printed when script finish, in my case i want to know which table weren't copied, even if those tables dont have PREFIX, because were tables created to work with my personal scripts, and i need to use it in new database, is good to show it in "not copied warning".
OLD TABLES NOT COPIED (this way is shown when script finish)
actualizar_stock ualizar_stock
tabla_auxiliar la_auxiliar
ps_example1 example1
ps_example2 example2
ps_example3 example3
... ...
... ...
As you can see above those table in old prestashop which doesn't have PREFIX will be shown cutted on final log, you can fix it with next change in line 36:
while($row = mysqli_fetch_row($res))
{ $oldtables[] = substr($row[0], $len);
}
you have to edit with this:
while($row = mysqli_fetch_row($res))
{ $oldtables[] = substr($row[0], 0, $len) == _OLD_PREFIX_ ? substr($row[0], $len) : $row[0];
}
Thanks.