myvc dump fixes: ini file not found

This commit is contained in:
Juan Ferrer 2022-03-17 10:03:23 +01:00
parent 14ee54bbd7
commit 7b55e54091
2 changed files with 4 additions and 3 deletions

View File

@ -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'

View File

@ -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",