mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 09:53:59 +00:00
10 lines
349 B
Python
10 lines
349 B
Python
|
from redash.models import db, Alert, AlertSubscription
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
with db.database.transaction():
|
||
|
# There was an AWS/GCE image created without this table, to make sure this exists we run this migration.
|
||
|
if not AlertSubscription.table_exists():
|
||
|
AlertSubscription.create_table()
|
||
|
|
||
|
db.close_db(None)
|