Skip to content

Commit

Permalink
Add new flag for mysqldump
Browse files Browse the repository at this point in the history
mysqldump v8+ introduces a new flag which could potentially break export
  • Loading branch information
Jinzhe authored and Jinzhe committed Jun 29, 2021
1 parent 8303e61 commit 9446fcb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const getDbDumpZipCommands = ({
database,
gzipFilePath
}) => // Dump and zip the db - this can make it around 9 times smaller
`mysqldump --host='${host}' --port='${port}' --user='${user}' --password='${password}' --no-tablespaces ${database} | gzip > '${gzipFilePath}'`;
`mysqldump --host='${host}' --port='${port}' --user='${user}' --password='${password}' --no-tablespaces --column-statistics=0 ${database} | gzip > '${gzipFilePath}'`;

exports.getDbDumpZipCommands = getDbDumpZipCommands;

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "swiff",
"version": "1.5.4",
"version": "1.5.5",
"description": "Swiff saves you time with common SSH tasks during the development of websites/apps",
"main": "index.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/database.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ const getDbDumpZipCommands = ({
gzipFilePath,
}) =>
// Dump and zip the db - this can make it around 9 times smaller
`mysqldump --host='${host}' --port='${port}' --user='${user}' --password='${password}' --no-tablespaces ${database} | gzip > '${gzipFilePath}'`
`mysqldump --host='${host}' --port='${port}' --user='${user}' --password='${password}' --no-tablespaces --column-statistics=0 ${database} | gzip > '${gzipFilePath}'`

const checkForDb = async ({ dbFilePath, sshConn }) => {
let errorMessage
Expand Down

0 comments on commit 9446fcb

Please sign in to comment.