By berliner, 9 February, 2023 Run post update hook repeatedly using drush Sometimes during development, you need to run the same post update hook repeatedly. Instead of resetting Drupals internal registry on already-run updates, we can also use drush to run a specific hook manually.
By berliner, 18 December, 2019 Delete all tables in a MySQL database Quick and dirty on linux based systems: mysql -u$DB_USER -p$DB_PASS -D$DB_NAME -h$DB_HOST -e "show tables" -s \ | awk \ -v DB_USER=$DB_USER \ -v DB_PASS=$DB_PASS \ -v DB_NAME=$DB_NAME \ -v DB_HOST=$DB_HOST \ '{ print "mysql -u"DB_USER" -p"DB_PASS" -D"DB_NAME" -h"DB_HOST" -e \"DROP TABLE "$1"\""}' \ | sh