Skip to content

Experiment renaming a table in Postgres with Alembic

Notifications You must be signed in to change notification settings

pxg/alembic_rename

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

#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