mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 01:48:54 +00:00
15 lines
346 B
Python
15 lines
346 B
Python
import json
|
|
import itertools
|
|
import peewee
|
|
from playhouse.migrate import Migrator
|
|
from redash import db, settings
|
|
from redash import models
|
|
|
|
if __name__ == '__main__':
|
|
db.connect_db()
|
|
|
|
if not models.ActivityLog.table_exists():
|
|
print "Creating activity_log table..."
|
|
models.ActivityLog.create_table()
|
|
|
|
db.close_db(None) |