Browse Source

Merge pull request #718 from gdarko/bugfix-mysqldump-625

Include the functions and stored procedures in the mysql dump as well
Raphael Schneeberger 6 years ago
parent
commit
7c5ff17eca
1 changed files with 1 additions and 1 deletions
  1. 1 1
      func/db.sh

+ 1 - 1
func/db.sh

@@ -55,7 +55,7 @@ mysql_query() {
 
 mysql_dump() {
     err="/tmp/e.mysql"
-    mysqldump --defaults-file=$mycnf --single-transaction -r $1 $2 2> $err
+    mysqldump --defaults-file=$mycnf --single-transaction --routines -r $1 $2 2> $err
     if [ '0' -ne "$?" ]; then
         rm -rf $tmpdir
         if [ "$notify" != 'no' ]; then