Experiment renaming a table in Postgres with Alembic
Python Mako
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
snacks
.gitignore
README.md
setup.py

README.md

#Alembic and Postgres table renaming experiment

This project was written using Python 3.4.3 and PostgreSQL 9.4.4.

##Installation Install the snacks package in editable mode:

pip install -e .

Install the requirements:

cd snacks
pip install -r requirements.txt

Create your role and database:

psql
CREATE USER snacks;
CREATE DATABASE snacks WITH OWNER snacks ENCODING 'UTF8';

Run the migrations to create the schama:

cd snacks
alembic -c alembic.ini upgrade head