mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 09:28:51 +00:00
c2e3637dce
This pull request implements UI for parameters and also allows to set the default value and type of a parameter. (Closes #583) Other changes in this pull request: - Loading/error state for dashboard widgets. - Refresh button on dashboard widgets (Closes #810). - Maintain sync between query/dashboard URL and current parameters, and preserve them when navigating. - Removed Pivot Table tab.
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),
|
|
)
|