Created
November 16, 2011 12:05
-
-
Save omega8cc/1369931 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cd /path/to/platform/sites/domain.name | |
drush sql-query "SHOW TABLES" | tail -n +2 | xargs -I '{}' echo "ALTER TABLE {} ENGINE=INNODB;" > alter_table.sql | |
perl -p -i -e 's/(search_[a-z_]+ ENGINE=)INNODB/\1MYISAM/g' alter_table.sql | |
cat alter_table.sql | `drush sql-connect` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just as a note to people using this. Don't forget to delete the alter_table.sql file.
Works like a charm omega8cc, Thanks!