What happened?
I am trying to move data in tables from sqlite do postgres. The problem with when in table, for example dashboard is field in json format. In table dashboard column data describes dashboard which is written. In sqlite data in column named dats in written in diffrent way than in postgres. In sqlite column data starts with with “7B22…”. When I copy directly value of this column to postgres db grafana doesn’t read it and dashboard is not able to be opened. I have checked that in postgres column data is describerd as “{”".
What was expected to happen?
I am looking for a solution how to migate column which are described in json format in diffrent way depend on db. Why don’t use the same format of json in sqlite and postges?
Steps to reproduce the problem:
- Prepare any dashboard in sqlite.
- Generate INSERT from sliqte from dashboard tables
- Execute command in postgres databases.
Version numbers (grafana, prometheus, graphite, plugins, operating system, etc.):
grafana 9.0
What Grafana version and what operating system are you using?
9.0
What are you trying to achieve?
Migration grafana db from sqlite to postgres.
How are you trying to achieve it?
I am trying to prepare python scrip to change insert genereted by sqlite dump to postgres tables. Grafana schema in postgres is a little diffrent in sqlite and postgres.
What happened?
I am trying to move data in tables from sqlite do postgres. The problem with when in table, for example dashboard is field in json format. In table dashboard column data describes dashboard which is written. In sqlite data in column named dats in written in diffrent way than in postgres. In sqlite column data starts with with “7B22…”. When I copy directly value of this column to postgres db grafana doesn’t read it and dashboard is not able to be opened. I have checked that in postgres column data is describerd as “{”".
What did you expect to happen?
Migration of tables with json decribed in hex in sqlite to json described in ascii in postgres?
Did you follow any online instructions? If so, what is the URL?
All online method doesn’t work. Direct copy from sqlite to postges doesn’t work.