Update fusio system

61 views
Skip to first unread message

Leonardo Carvalho

unread,
Nov 1, 2023, 2:21:34 PM11/1/23
to Fusio
Hi,

I need to update fusio to the latest version which is currently fusio api version 6.1.1.0. But I don't want to lose the data in my mysql 5.7 database. Is there any way to perform a system migration that updates the tables and other necessary configurations of the database, which is in a separate docker container and so I can update fusio to version 4.0 (psx 7.5.3.0)?

Christoph Kappestein

unread,
Nov 1, 2023, 3:26:19 PM11/1/23
to Fusio
Hi,

this requires some work but it is possible, we have written a documentation of this process at:
Before starting the upgrade always create a backup of your current database since the migration may fail.

best regards
Christoph

Leonardo Carvalho

unread,
Nov 6, 2023, 7:15:28 AM11/6/23
to Fusio

Hi,

Thank you for your help!

But when trying to run the 'php bin/fusio migration:migrate' command to update the database schema, it threw an error due to the lack of the 'metadata' column in the 'fusio_routes' table. I am using version 2.* of the fusio docker repository and the api version is fusio 6.1.1.0. Is there a way to update my database with a script despite its schema being older than version 3.3 of fusio which adds the 'metadata' column?

Captura de tela de 2023-11-06 08-08-23.png

Christoph Kappestein

unread,
Nov 7, 2023, 3:06:30 PM11/7/23
to Fusio
Hi,

ok, since your database has not the metadata columns you have indeed an older version, in this case I would recommend to first move your database to version v3.3.2 and from there you should be able to install the current 4.x version.

best regards
Christoph

Reply all
Reply to author
Forward
0 new messages