Skip to content

Commit 6c28bf4

Browse files
committed
Include the functions and stored procedures in the mysql dump as well
1 parent 9490fc9 commit 6c28bf4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

func/db.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ mysql_query() {
5555

5656
mysql_dump() {
5757
err="/tmp/e.mysql"
58-
mysqldump --defaults-file=$mycnf --single-transaction -r $1 $2 2> $err
58+
mysqldump --defaults-file=$mycnf --single-transaction --routines -r $1 $2 2> $err
5959
if [ '0' -ne "$?" ]; then
6060
rm -rf $tmpdir
6161
if [ "$notify" != 'no' ]; then

0 commit comments

Comments
 (0)