Skip to content

pxg/alembic_rename

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

#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

About

Experiment renaming a table in Postgres with Alembic

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published