Update main.js
This commit is contained in:
parent
2f84260757
commit
00974a9868
11
main.js
11
main.js
|
@ -1,16 +1,16 @@
|
||||||
/*
|
/*
|
||||||
* This file is a part of "NMIG" - the database migration tool.
|
* This file is a part of "NMIG" - the database migration tool.
|
||||||
*
|
*
|
||||||
* Copyright 2015 Anatoly Khaytovich <anatolyuss@gmail.com>
|
* Copyright 2015 Anatoly Khaytovich <anatolyuss@gmail.com>
|
||||||
*
|
*
|
||||||
* @author Anatoly Khaytovich <anatolyuss@gmail.com>
|
* @author Anatoly Khaytovich <anatolyuss@gmail.com>
|
||||||
*/
|
*/
|
||||||
'use strict';
|
'use strict';
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const fmtp = require('./migration/fmtp/FromMySQL2PostgreSQL');
|
const fmtp = require('./migration/fmtp/FromMySQL2PostgreSQL');
|
||||||
const nmig = new fmtp.FromMySQL2PostgreSQL();
|
const nmig = new fmtp.FromMySQL2PostgreSQL();
|
||||||
|
|
||||||
fs.readFile(__dirname + '/config.json', function(error, data) {
|
fs.readFile(__dirname + '/config.json', (error, data) => {
|
||||||
if (error) {
|
if (error) {
|
||||||
console.log('\n\t--Cannot run migration\nCannot read configuration info from ' + __dirname + '/config.json');
|
console.log('\n\t--Cannot run migration\nCannot read configuration info from ' + __dirname + '/config.json');
|
||||||
} else {
|
} else {
|
||||||
|
@ -25,4 +25,3 @@ fs.readFile(__dirname + '/config.json', function(error, data) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue