Git Product home page Git Product logo

migrations's Introduction

migrations

Minimal package to manage migrations with old system

Install

Clone this repository and install with pip:
pip install -U .

How to use

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/

Limits

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.

migrations's People

Contributors

hermogenes-db18 avatar hermogenesbatista avatar batistahermogenes avatar

Stargazers

João Eduardo Medeiros avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.