Skip to content

DuoSoftware/DVP-MigrationScripts

Repository files navigation

DVP-MigrationScripts

sudo pip install virtualenv (install virtual virtualenv library)

virtualenv -p /usr/bin/python3.6 venv (create a virtual env)

source venv/bin/activate (activate the env)

pip install requirement.txt (install dependencies)

PgMigrator.py is to migrate postgres tables and mongoMigrator is to migrate mongo collections. uncomment the necessary functions to execute

PostgresDiff and mongoDiff can be used to compare and produce difference of two databases.


You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application

sudo apt-get install -y postgis postgresql-9.3-postgis-2.1 pip install psycopg2 or

sudo apt-get install libpq-dev python-dev pip install psycopg2

working -> sudo apt-get install libpq-dev python-dev pip install psycopg2

to exit virtualenv > deactivate


How to install virtualenv:

Install pip first

sudo apt-get install python3-pip

Then install virtualenv using pip3

sudo pip3 install virtualenv 

Now create a virtual environment

virtualenv venv 

you can use any name insted of venv

You can also use a Python interpreter of your choice

virtualenv -p /usr/bin/python2.7 venv

Active your virtual environment:

source venv/bin/activate

Using fish shell:

source venv/bin/activate.fish

To deactivate:

deactivate

Create virtualenv using Python3

virtualenv -p python3 myenv

Instead of using virtualenv you can use this command in Python3

python3 -m venv myenv

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published