mirror of
https://github.com/valitydev/redash.git
synced 2024-11-08 01:48:54 +00:00
4eb490a839
Added migration to change all existing elasticsearch datasource to kibana datasource.
11 lines
211 B
Python
11 lines
211 B
Python
__author__ = 'lior'
|
|
|
|
from redash.models import DataSource
|
|
|
|
if __name__ == '__main__':
|
|
|
|
for ds in DataSource.all():
|
|
if ds.type == 'elasticsearch':
|
|
ds.type = 'kibana'
|
|
ds.save()
|