createdb.py 342 B

1234567891011121314
  1. #!/usr/bin/env python2
  2. # These two lines are needed to run on EL6
  3. __requires__ = ['SQLAlchemy >= 0.8', 'jinja2 >= 2.4']
  4. import pkg_resources
  5. from pagure import APP
  6. from pagure.lib import model
  7. model.create_tables(
  8. APP.config['DB_URL'],
  9. APP.config.get('PATH_ALEMBIC_INI', None),
  10. acls=APP.config.get('ACLS', {}),
  11. debug=True)