db-update-modele.sh
398 Bytes
#!/bin/bash
username=$(grep "/\*d\*/'username'" ../../config/app.php.ORIG | cut -d"'" -f4)
password=$(grep "/\*d\*/'password'" ../../config/app.php.ORIG | cut -d"'" -f4)
database=$(grep "/\*d\*/'database'" ../../config/app.php.ORIG | cut -d"'" -f4)
mysql --user=$username --password=$password -h $database < ./db-update-xxxx-xx-xx.sql
rm ../../tmp/cache/models/*
rm ../../tmp/cache/persistent/*