mirror of
https://github.com/valitydev/redash.git
synced 2024-11-06 17:15:17 +00:00
70d545410d
Also moved old migrations to old_migrations folder (before deleting them entirely).
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),
|
|
)
|