myvc dump fixes: ini file not found
This commit is contained in:
parent
14ee54bbd7
commit
7b55e54091
|
@ -22,6 +22,7 @@ class Dump {
|
|||
|
||||
async run(myvc, opts) {
|
||||
const conn = await myvc.dbConnect();
|
||||
const iniPath = path.join(opts.subdir || '', 'remotes', opts.iniFile);
|
||||
|
||||
const dumpDir = `${opts.myvcDir}/dump`;
|
||||
if (!await fs.pathExists(dumpDir))
|
||||
|
@ -43,7 +44,7 @@ class Dump {
|
|||
}, opts.debug);
|
||||
|
||||
let dumpArgs = [
|
||||
`--defaults-file=${opts.iniFile}`,
|
||||
`--defaults-file=${iniPath}`,
|
||||
'--default-character-set=utf8',
|
||||
'--no-data',
|
||||
'--comments',
|
||||
|
@ -56,7 +57,7 @@ class Dump {
|
|||
await this.dockerRun('myvc-dump.sh', dumpArgs, execOptions);
|
||||
|
||||
const fixturesArgs = [
|
||||
`--defaults-file=${opts.iniFile}`,
|
||||
`--defaults-file=${iniPath}`,
|
||||
'--no-create-info',
|
||||
'--skip-triggers',
|
||||
'--insert-ignore'
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "myvc",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"author": "Verdnatura Levante SL",
|
||||
"description": "MySQL Version Control",
|
||||
"license": "GPL-3.0",
|
||||
|
|
Loading…
Reference in New Issue