Blame view

database/update/db-update-modele.sh 398 Bytes
1f42188e   Alexandre   Version: 2.4.4.4
1
2
3
4
5
6
7
8
9
10
#!/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/*