Commits

Mikhail Korobov committed b9c99b3

Ignore mysqldump errors during migrate command. This is a temporary fix for sqlite deployments until proper support for non-mysql DB engines come.

  • Participants
  • Parent commits 15c7c3e

Comments (0)

Files changed (1)

File fab_deploy/django_commands.py

     if do_backup:
         backup_dir = env.conf['ENV_DIR'] + '/var/backups/before-migrate'
         run('mkdir -p '+ backup_dir)
-        mysql.mysqldump(backup_dir)
+        with settings(warn_only=True):
+            mysql.mysqldump(backup_dir)
     manage('migrate --noinput %s' % params)
 
 def syncdb(params=''):