redash/old_migrations/0025_add_query_snippets_table.py

9 lines
214 B
Python
Raw Normal View History

2016-08-22 20:54:20 +00:00
from redash.models import db, QuerySnippet
if __name__ == '__main__':
with db.database.transaction():
if not QuerySnippet.table_exists():
QuerySnippet.create_table()
db.close_db(None)