Permalink
Browse files

attempt to avoid mysqldump deprecation warning

  • Loading branch information...
1 parent e87ff60 commit 0028c2d15a525893d502c14f00966ee568429d4f @lazylester committed Mar 21, 2013
Showing with 6 additions and 5 deletions.
  1. +6 −5 app/models/application_database.rb
@@ -28,10 +28,11 @@ def self.sql_dump_to_file(file)
sql_cmd =<<-SQL
#{@@db_config['path']}mysqldump\
-u #{@@db_config['username']} #{@@password}\
- --single-transaction -Q\
- --add-drop-table -O\
- add-locks=FALSE -O\
- lock-tables=FALSE\
+ --single-transaction\
+ --quote-names\
+ --add-drop-table\
+ --add-locks=FALSE\
+ --lock-tables=FALSE\
--hex-blob #{@@db_config['database']} > #{file}
SQL
end
@@ -42,7 +43,7 @@ def self.sql_restore(filename)
--database #{@@db_config['database']}\
--host=#{@@db_config['host']}\
--user=#{@@db_config['username']} #{@@password}\
- -e \"source #{filename}\";
+ -e "source #{filename}";
SQL
end

0 comments on commit 0028c2d

Please sign in to comment.