mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 17:38:54 +00:00
12 lines
244 B
Python
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) |