Update main.js

This commit is contained in:
Anatoly Khaytovich 2016-01-10 23:58:30 +02:00
parent 2f84260757
commit 00974a9868

11
main.js
View file

@ -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) {
} }
} }
}); });