Minimal package to manage migrations with old system
Clone this repository and install with pip:
pip install -U .
migrations -h
usage: migrations [-h] [-t CONNECTION_TYPE] [-u USER] [-p PASSWORD]
[-db DATABASE] [-H HOST] [--port PORT] [--charset CHARSET]
[-mg MIGRATIONS_PATH]
Command line to manage database transformations (migrations)
optional arguments:
-h, --help show this help message and exit
-t CONNECTION_TYPE, --connection_type CONNECTION_TYPE
Type of connection (such as mysql, postegresql) you
want to connect
-u USER, --user USER User used on connection with database
-p PASSWORD, --password PASSWORD
User used on connection with database
-db DATABASE, --database DATABASE
Database used on connection with database
-H HOST, --host HOST Host used on connection with database
--port PORT Port used on connection with database
--charset CHARSET Charset of connection with database
-mg MIGRATIONS_PATH, --migrations_path MIGRATIONS_PATH
Absolute path with files to execute migrations
Finally we can run:
migrations -t mysql -u USER -p PASSWORD -db DATABASE -H HOST --port PORT -mg /absolute/path/with/migrations/files/
At this moment, we have only have support to MySQL
, but if you want to contribute, feel free to create Pull Request with new one connector.