fix previous scripts to be able to run on innodb