redash/old_migrations/0025_add_query_snippets_table.py
Arik Fraimovich 70d545410d Add Flask-Migrate to the project
Also moved old migrations to old_migrations folder (before deleting them entirely).
2016-12-07 17:59:01 +02:00

9 lines
214 B
Python

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)