I was wondering if it is possible to convert the database from the beta version back to the old format, so it will be accepted by a fresh new stable installation.
I am using the latest beta version but experience some problems so I would like to go back to 4.9700 and see if that helps.
Mostly I would like to have all my devices with names/idx_numbers back in the stable installation. History is not so interesting , so I can live without that.
Can I convert database from beta back to stable 4.97 ?
Moderators: leecollings, remb0
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Can I convert database from beta back to stable 4.97 ?
In general this is not a good idea and Database schema's are different. Between current Beta and 4.9700 the devicestatus table did not change but there has been a change in the hardware table. So just copying these tables between databases will probably not work.costo wrote: ↑Sunday 03 February 2019 1:35 I was wondering if it is possible to convert the database from the beta version back to the old format, so it will be accepted by a fresh new stable installation.
I am using the latest beta version but experience some problems so I would like to go back to 4.9700 and see if that helps.
Mostly I would like to have all my devices with names/idx_numbers back in the stable installation. History is not so interesting , so I can live without that.
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
-
- Posts: 71
- Joined: Tuesday 11 August 2015 17:35
- Target OS: Linux
- Domoticz version: 2025.1
- Location: Netherlands
- Contact:
Re: Can I convert database from beta back to stable 4.97 ?
It's a pity that stable version 4.9700 refuses to accept the beta database. I thought about a little tool to copy certain tables to a new database. It wouldn't be so much work to build the hardware table from scratch and the scripts can just be copied. But that is different for the device table. I have 125 devices and a lot of ESP8266 virtual hardware with ESPEasy on it that uses the idx of devices. To build that from scratch is not my plan.waaren wrote: ↑Sunday 03 February 2019 9:08 In general this is not a good idea and Database schema's are different. Between current Beta and 4.9700 the devicestatus table did not change but there has been a change in the hardware table. So just copying these tables between databases will probably not work.
My database experience (Borland's dBASE) dates back to the late DOS-era. Applications have become so much more complex since that time. I was hoping there excists a tool that makes it simple to selectively copy certain tables from one to another database.
- waaren
- Posts: 6028
- Joined: Tuesday 03 January 2017 14:18
- Target OS: Linux
- Domoticz version: Beta
- Location: Netherlands
- Contact:
Re: Can I convert database from beta back to stable 4.97 ?
A tool that you can use for this is sqlite3.costo wrote: ↑Sunday 03 February 2019 11:36 I thought about a little tool to copy certain tables to a new database. It wouldn't be so much work to build the hardware table from scratch and the scripts can just be copied. But that is different for the device table. I have 125 devices and a lot of ESP8266 virtual hardware with ESPEasy on it that uses the idx of devices. To build that from scratch is not my plan.
Use at your own risk and not without backup and prooven restore procedure.
Code: Select all
sqlite3 domoticz.db
attach database 'domoticz_beta.db' as beta;
insert into main.deviceStatus select * from beta.DeviceStatus;
Debian buster, bullseye on RPI-4, Intel NUC.
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
dz Beta, Z-Wave, RFLink, RFXtrx433e, P1, Youless, Hue, Yeelight, Xiaomi, MQTT
==>> dzVents wiki
Who is online
Users browsing this forum: No registered users and 1 guest