| 23 | | === create migration script === |
| 24 | | 1. If you know the exact changes of the database, compared to the old version in live server, then the migration script is the commands that synchornize the two versions. |
| 25 | | 1. You can compare the mysql dump files between the live and the local version. This is easier if you dump only the schemas (not the data) . |
| 26 | | 1. This is done: mysqldump --no-data, -d bbmri -u molgenis –pmolgenis > ~/databaseDumps/<date>bbmriDB.mysql |
| | 23 | === create migration script === |
| | 24 | 1. If you know the exact changes of the database, compared to the old version in live server, then the migration script is the commands that synchornize the two versions. |
| | 25 | 1. You can compare the mysql dump files between the live and the local version. This is easier if you dump only the schemas (not the data) . |
| | 26 | 1. First ssh to molgenis14 |
| | 27 | 1. create a dump file: mysqldump --no-data, -d bbmri -u molgenis –pmolgenis > ~/databaseDumps/<date>bbmriDBlive.mysql |
| | 28 | 1. create a local dump file: mysqldump --no-data, -d bbmri -u molgenis –pmolgenis > ~/databaseDumps/<date>bbmriDBlocal.mysql |
| | 29 | 1. diff <date>bbmriDBlive.mysql <date>bbmriDBlocal.mysql |