Python migration with Alembic

$ pip install alembic $ alembic init –template generic alembic edit alembic.ini sqlalchemy.url = mysql://root:@localhost/database_name $ alembic current $ alembic revision -m “Init” $ alembic upgrade head INFO [alembic.migration] Context impl MySQLImpl. INFO [alembic.migration] Will assume non-transactional DDL. INFO [alembic.migration] Running upgrade None -> 174f01a0ar12, Init

Setup python app in centos from scratch (centos 6.9+uwsgi+nginx+flask+mysql)

Initial setup $ sudo yum update $ sudo yum install epel-release $ sudo yum groupinstall “Development tools” $ sudo yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel telnet htop $ sudo yum install python-devel python-virtualenv $ sudo yum install mysql-connector-python mysql-devel mysql-server Install Python Download and install Python : https://www.python.org/ ./configure && make && make altinstall Install … Read more