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