-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add configuration option to change default delimiter, copyright notice
- Loading branch information
AnatolyUss
committed
Feb 4, 2017
1 parent
86d872e
commit d65b2a8
Showing
41 changed files
with
60 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -61,7 +61,7 @@ from MySQL to PostgreSQL as easy and smooth as possible.</p> | |
<a href="mailto:[email protected]?subject=NMIG">[email protected]</a></p> | ||
|
||
<h3>VERSION</h3> | ||
<p>Current version is 2.5.0<br /> | ||
<p>Current version is 2.6.0<br /> | ||
(major version . improvements . bug fixes)</p> | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -41,7 +41,7 @@ module.exports = self => { | |
if (!self._mysql) { | ||
self._sourceConString.connectionLimit = self._maxPoolSizeSource; | ||
const pool = mysql.createPool(self._sourceConString); | ||
|
||
if (pool) { | ||
self._mysql = pool; | ||
mysqlResolve(); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software= you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -93,4 +93,8 @@ module.exports = function Conversion(config) { | |
this._maxLoaderProcesses = this._config.max_loader_processes !== undefined && isIntNumeric(this._config.max_loader_processes) | ||
? +this._config.max_loader_processes | ||
: 1; | ||
|
||
this._delimiter = this._config.delimiter !== undefined && this._config.delimiter.length === 1 | ||
? this._config.delimiter | ||
: ','; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -255,7 +255,7 @@ const populateTableWorker = (self, tableName, strSelectFieldList, offset, rowsIn | |
generateError(self, '\t--[populateTableWorker] Cannot connect to PostgreSQL server...\n' + error, sql); | ||
deleteCsv(csvAddr, fd).then(() => resolvePopulateTableWorker()); | ||
} else { | ||
const sqlCopy = 'COPY "' + self._schema + '"."' + tableName + '" FROM STDIN DELIMITER \'' + ',\'' + ' CSV;'; | ||
const sqlCopy = 'COPY "' + self._schema + '"."' + tableName + '" FROM STDIN DELIMITER \'' + self._delimiter + '\' CSV;'; | ||
const copyStream = client.query(copyFrom(sqlCopy)); | ||
const readStream = fs.createReadStream(csvAddr, { encoding: self._encoding }); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -40,7 +40,7 @@ module.exports = (self, tableName) => { | |
log(self, '\t--[processEnum] Defines "ENUMs" for table "' + self._schema + '"."' + tableName + '"', self._dicTables[tableName].tableLogPath); | ||
const processEnumPromises = []; | ||
const originalTableName = extraConfigProcessor.getTableName(self, tableName, true); | ||
|
||
for (let i = 0; i < self._dicTables[tableName].arrTableColumns.length; ++i) { | ||
if (self._dicTables[tableName].arrTableColumns[i].Type.indexOf('(') !== -1) { | ||
const arrType = self._dicTables[tableName].arrTableColumns[i].Type.split('('); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software= you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -42,7 +42,7 @@ const boot = require('./BootProcessor'); | |
*/ | ||
module.exports = config => { | ||
const self = new Conversion(config); | ||
|
||
boot(self).then(() => { | ||
return readDataTypesMap(self); | ||
}).then( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -40,7 +40,7 @@ module.exports = (self, tableName) => { | |
log(self, '\t--[processNull] Defines "NOT NULLs" for table: "' + self._schema + '"."' + tableName + '"', self._dicTables[tableName].tableLogPath); | ||
const processNullPromises = []; | ||
const originalTableName = extraConfigProcessor.getTableName(self, tableName, true); | ||
|
||
for (let i = 0; i < self._dicTables[tableName].arrTableColumns.length; ++i) { | ||
if (self._dicTables[tableName].arrTableColumns[i].Null.toLowerCase() === 'no') { | ||
processNullPromises.push( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
@@ -104,7 +104,7 @@ module.exports.createSequence = (self, tableName) => { | |
return new Promise(resolve => { | ||
const createSequencePromises = []; | ||
const originalTableName = extraConfigProcessor.getTableName(self, tableName, true); | ||
|
||
for (let i = 0; i < self._dicTables[tableName].arrTableColumns.length; ++i) { | ||
if (self._dicTables[tableName].arrTableColumns[i].Extra === 'auto_increment') { | ||
createSequencePromises.push( | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
/* | ||
* This file is a part of "NMIG" - the database migration tool. | ||
* | ||
* Copyright (C) 2016 - 2017 Anatoly Khaytovich <[email protected]> | ||
* Copyright (C) 2016 - present, Anatoly Khaytovich <[email protected]> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
|
Oops, something went wrong.