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
264 B
Python
11 lines
264 B
Python
__author__ = 'lior'
|
|
|
|
from redash.models import DataSource
|
|
|
|
if __name__ == '__main__':
|
|
|
|
for ds in DataSource.select(DataSource.id, DataSource.type):
|
|
if ds.type == 'elasticsearch':
|
|
ds.type = 'kibana'
|
|
ds.save(only=ds.dirty_fields)
|