Skip to content

Commit d65b2a8

Browse files
author
AnatolyUss
committed
add configuration option to change default delimiter, copyright notice
1 parent 86d872e commit d65b2a8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+60
-49
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ from MySQL to PostgreSQL as easy and smooth as possible.</p>
6161
<a href="mailto:[email protected]?subject=NMIG">[email protected]</a></p>
6262

6363
<h3>VERSION</h3>
64-
<p>Current version is 2.5.0<br />
64+
<p>Current version is 2.6.0<br />
6565
(major version . improvements . bug fixes)</p>
6666

6767

config.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@
9595
],
9696
"migrate_only_data" : false,
9797

98+
"delimiter_description" : [
99+
"Specifies the character that separates columns within each record.",
100+
"This must be a single one-byte character.",
101+
"The default is comma."
102+
],
103+
"delimiter" : ",",
104+
98105
"enable_extra_config_description" : [
99106
"In order to enable the additional configuration options - set this parameter true."
100107
],

migration/fmtp/BootProcessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of "NMIG" - the database migration tool.
33
*
4-
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]>
4+
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]>
55
*
66
* This program is free software: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

migration/fmtp/CleanupProcessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of "NMIG" - the database migration tool.
33
*
4-
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]>
4+
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]>
55
*
66
* This program is free software: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

migration/fmtp/ColumnsDataArranger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of "NMIG" - the database migration tool.
33
*
4-
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]>
4+
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]>
55
*
66
* This program is free software: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

migration/fmtp/CommentsProcessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of "NMIG" - the database migration tool.
33
*
4-
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]>
4+
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]>
55
*
66
* This program is free software: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

migration/fmtp/Connector.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of "NMIG" - the database migration tool.
33
*
4-
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]>
4+
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]>
55
*
66
* This program is free software: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by
@@ -41,7 +41,7 @@ module.exports = self => {
4141
if (!self._mysql) {
4242
self._sourceConString.connectionLimit = self._maxPoolSizeSource;
4343
const pool = mysql.createPool(self._sourceConString);
44-
44+
4545
if (pool) {
4646
self._mysql = pool;
4747
mysqlResolve();

migration/fmtp/ConsistencyEnforcer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of "NMIG" - the database migration tool.
33
*
4-
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]>
4+
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]>
55
*
66
* This program is free software: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

migration/fmtp/ConstraintsProcessor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of "NMIG" - the database migration tool.
33
*
4-
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]>
4+
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]>
55
*
66
* This program is free software: you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by

migration/fmtp/Conversion.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* This file is a part of "NMIG" - the database migration tool.
33
*
4-
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]>
4+
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]>
55
*
66
* This program is free software= you can redistribute it and/or modify
77
* it under the terms of the GNU General Public License as published by
@@ -93,4 +93,8 @@ module.exports = function Conversion(config) {
9393
this._maxLoaderProcesses = this._config.max_loader_processes !== undefined && isIntNumeric(this._config.max_loader_processes)
9494
? +this._config.max_loader_processes
9595
: 1;
96+
97+
this._delimiter = this._config.delimiter !== undefined && this._config.delimiter.length === 1
98+
? this._config.delimiter
99+
: ',';
96100
};

0 commit comments

Comments
 (0)