mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 09:53:59 +00:00
11 lines
303 B
Python
11 lines
303 B
Python
|
from redash.models import db, Query
|
||
|
from playhouse.migrate import PostgresqlMigrator, migrate
|
||
|
|
||
|
if __name__ == '__main__':
|
||
|
migrator = PostgresqlMigrator(db.database)
|
||
|
|
||
|
with db.database.transaction():
|
||
|
migrate(
|
||
|
migrator.add_column('queries', 'options', Query.options),
|
||
|
)
|