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)