From 066e85e0de173b7f25128c9a7f8300fd136c629e Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Mar 18 2014 14:27:48 +0000 Subject: Add the createdb script to initialize the DB --- diff --git a/createdb.py b/createdb.py new file mode 100644 index 0000000..d37b952 --- /dev/null +++ b/createdb.py @@ -0,0 +1,13 @@ +#!/usr/bin/python + +## These two lines are needed to run on EL6 +__requires__ = ['SQLAlchemy >= 0.7', 'jinja2 >= 2.4'] +import pkg_resources + +from progit import APP +from progit import model + +model.create_tables( + APP.config['DB_URL'], + APP.config.get('PATH_ALEMBIC_INI', None), + True)