redash/migrations/create_events.py
Arik Fraimovich 5698f9692a Events model
2014-07-09 18:33:21 +03:00

12 lines
244 B
Python

from redash.models import db
from redash import models
if __name__ == '__main__':
db.connect_db()
if not models.Event.table_exists():
print "Creating events table..."
models.Event.create_table()
db.close_db(None)