Skip to content

Instantly share code, notes, and snippets.

@jalama
Created November 30, 2015 14:43
Show Gist options
  • Save jalama/f3acd304458d3d3e5d9f to your computer and use it in GitHub Desktop.
Save jalama/f3acd304458d3d3e5d9f to your computer and use it in GitHub Desktop.
drush sqlq "select distinct concat('describe ', table_name, ';') as query from information_schema.tables where table_schema='<db_name_here>'"| xargs -I % drush sqlq "%" > ~/tables.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment