Skip to content

Commit eb53749

Browse files
committed
Merge branch 'release/v5.3.0'
2 parents d33fcfc + 3e91d54 commit eb53749

22 files changed

+656
-393
lines changed

README.md

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ from MySQL to PostgreSQL as easy and smooth as possible.</p>
2121

2222
<h3>SYSTEM REQUIREMENTS</h3>
2323
<ul>
24-
<li> <b>Node.js 8 or higher</b></li>
24+
<li> <b>Node.js 10 or higher</b></li>
2525
</ul>
2626

2727
<h3>USAGE</h3>
@@ -38,22 +38,35 @@ from MySQL to PostgreSQL as easy and smooth as possible.</p>
3838
<ul>
3939
<li> config.json contains brief description of each configuration parameter</li>
4040
<li>Make sure, that username, you use in your PostgreSQL connection details, defined as superuser (usually "postgres")<br> More info: <a href="http://www.postgresql.org/docs/current/static/app-createuser.html">http://www.postgresql.org/docs/current/static/app-createuser.html</a></li>
41+
<li>
42+
<ul>
43+
<li>As an option, you can move the entire <code>config</code> folder out of Nmig's directory and place it in any location</li>
44+
<li>As an option, you can store the Nmig's logs in any location. All you need to do is to create the <code>nmig_logs</code> directory</li>
45+
</ul>
46+
</li>
4147
</ul>
4248

4349
<p><b>4.</b> Go to Nmig directory, install dependencies, compile and run the app<br />
44-
&nbsp;&nbsp;&nbsp;&nbsp;<b>Sample:</b><br />
50+
<b>Sample:</b><br />
4551
<pre>$ cd /path/to/nmig</pre><br />
4652
<pre>$ npm install</pre><br />
4753
<pre>$ npm run build</pre><br />
4854
<pre>$ npm start</pre><br />
49-
</p>
55+
<b>Or, if you have moved <code>config</code> folder out from Nmig's directory:</b><br /><br />
56+
<pre>npm start -- --conf-dir='/path/to/nmig_config' --logs-dir='/path/to/nmig_logs'</pre><br />
5057

5158
<p><b>5.</b> If a disaster took place during migration (for what ever reason) - simply restart the process
52-
<code>$ npm start</code><br>&nbsp;&nbsp;&nbsp;&nbsp;NMIG will restart from the point it was stopped at.
59+
<code>$ npm start</code><br />
60+
Or, if you have moved <code>config</code> folder out from Nmig's directory:<br />
61+
<code>$ npm start -- --conf-dir='/path/to/nmig_config' --logs-dir='/path/to/nmig_logs'</code><br />
62+
63+
&nbsp;&nbsp;&nbsp;&nbsp;NMIG will restart from the point it was stopped at.
5364
</p>
5465

5566
<p><b>6.</b> At the end of migration check log files, if necessary.<br />&nbsp;&nbsp;&nbsp;
5667
Log files will be located under "logs_directory" folder in the root of the package.<br />&nbsp;&nbsp;&nbsp;
68+
<b>Note:</b> If you've created <code>nmig_logs</code> folder outside the nmig's directory than "logs_directory" will reside in <code>nmig_logs</code>.
69+
<br />
5770
<b>Note:</b> "logs_directory" will be created during script execution.</p>
5871

5972

@@ -65,7 +78,7 @@ from MySQL to PostgreSQL as easy and smooth as possible.</p>
6578
<p><b>1.</b> Create a new PostgreSQL database.<br />
6679
<b>Sample:</b>&nbsp;<code> CREATE DATABASE nmig_test_db;</code><br />
6780
</p>
68-
<p><b>2.</b> Download Nmig package.<br/ ><b>Sample:</b>&nbsp;<code>/path/to/nmig</code></p>
81+
<p><b>2.</b> Download Nmig package.<br/><b>Sample:</b>&nbsp;<code>/path/to/nmig</code></p>
6982
<p><b>3.</b> Edit configuration file located at <code>/path/to/nmig/config/test_config.json</code> with correct details.<br /></p>
7083
<b>Notes:</b>
7184
<ul>
@@ -74,21 +87,29 @@ from MySQL to PostgreSQL as easy and smooth as possible.</p>
7487
More info:
7588
<a href="http://www.postgresql.org/docs/current/static/app-createuser.html">http://www.postgresql.org/docs/current/static/app-createuser.html</a>
7689
</li>
90+
<li>
91+
<ul>
92+
<li>As an option, you can move the entire <code>config</code> folder out of Nmig's directory and place it in any location</li>
93+
<li>As an option, you can store the Nmig's logs in any location. All you need to do is to create the <code>nmig_logs</code> directory</li>
94+
</ul>
95+
</li>
7796
</ul>
7897
<p><b>4.</b> Go to nmig directory, install dependencies, compile and run tests<br />
79-
&nbsp;&nbsp;&nbsp;&nbsp;<b>Sample:</b><br />
98+
<b>Sample:</b><br />
8099
<pre>$ cd /path/to/nmig</pre><br />
81100
<pre>$ npm install</pre><br />
82101
<pre>$ npm run build</pre><br />
83102
<pre>$ npm test</pre><br />
103+
<b>Or, if you have moved <code>config</code> folder out from Nmig's directory:</b><br /><br />
104+
<pre>npm test -- --conf-dir='/path/to/nmig_config' --logs-dir='/path/to/nmig_logs'</pre><br />
84105
</p>
85106
<p><b>5.</b> At the end of migration check log files, if necessary.<br />&nbsp;&nbsp;&nbsp;
86107
Log files will be located under "logs_directory" folder in the root of the package.<br />&nbsp;&nbsp;&nbsp;
87-
<b>Note:</b> "logs_directory" will be created during script execution.</p>
108+
<b>Note:</b> If you've created <code>nmig_logs</code> folder outside the nmig's directory than "logs_directory" will reside in <code>nmig_logs</code>.
109+
<br /><b>Note:</b> "logs_directory" will be created during script execution.</p>
88110

89111
<h3>VERSION</h3>
90-
<p>Current version is 5.2.0<br />
91-
(major version . improvements . bug fixes)</p>
112+
<p>Current version is 5.3.0<br />
92113

93114
<h3>LICENSE</h3>
94115
<p>NMIG is available under "GNU GENERAL PUBLIC LICENSE" (v. 3) <br />

config/config.json

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@
3535
"password" : "0123456789"
3636
},
3737

38-
"max_db_connection_pool_size_description" : [
39-
"Maximal amount of simultaneous connections to your MySQL and PostgreSQL servers.",
40-
"For example: 10 means, that nmig will create a pool of 10 connections to MySQL server",
41-
"and 10 connections to PostgreSQL server.",
42-
"20 connections to both servers."
38+
"max_each_db_connection_pool_size_description" : [
39+
"Maximal amount of simultaneous connections to your MySQL and PostgreSQL servers each.",
40+
"Example: 20 means, that Nmig will create a pool of 20 connections to the source MySQL server",
41+
"and 20 connections to the target PostgreSQL server.",
42+
"40 connections to both servers."
4343
],
44-
"max_db_connection_pool_size" : 10,
44+
"max_each_db_connection_pool_size" : 20,
4545

4646
"loader_max_old_space_size_description" : [
4747
"V8 memory limit of the loader process.",
@@ -69,15 +69,6 @@
6969
],
7070
"schema" : "public",
7171

72-
"no_vacuum_description" : [
73-
"PostgreSQL VACUUM reclaims storage occupied by dead tuples.",
74-
"VACUUM is a very time-consuming procedure.",
75-
"By default, VACUUM will be performed automatically after migration (recommended)",
76-
"This behavior can be disabled for tables, included into the list (Array) below.",
77-
"Table names, included into the list below should be names, you use in your source database (MySQL)."
78-
],
79-
"no_vacuum" : [],
80-
8172
"exclude_tables_description": [
8273
"List (Array) of tables, that will not be migrated.",
8374
"By default, nmig will migrate all tables."

0 commit comments

Comments
 (0)