Skip to content
Experiment renaming a table in Postgres with Alembic
Python Mako
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
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
You can’t perform that action at this time.