apioo / fusio

Open source API management platform
https://www.fusio-project.org
Apache License 2.0
1.87k stars 223 forks source link

How to Upgrade old version without loosing the data #556

Open bangash-92 opened 5 months ago

bangash-92 commented 5 months ago

@chriskapp I am trying to upgrade from version 2.0.0 to 4.0.3 and followed all the steps in the documentation. But still unable to upgrade the system. When we run the migrate command it says table already exists. Steps: 1) Download a fresh copy 2) connect to old database 3) run the migrate command 4) run the upgrade command

chriskapp commented 5 months ago

Hi @bangash-92 could you download the latest 3.x version and migrate from 2.x to the latest 3.x and then from 3.x to the latest 4.x version. This should work, then you could also upgrade from 4.x to 5.x.

bangash-92 commented 5 months ago

Hi @chriskapp Now getting this error. Where can i update the path

Config variable ${BASE_PATH} is not defined www/api_fusio_upg/public/apps/fusio/.htaccess: RewriteBase: argument is not a valid URL

chriskapp commented 5 months ago

So the ${BASE_PATH} gets normally replaced by the installer but you can also manually replace it. In you case I would guess it is /apps/fusio/ if your DocumentRoot is set to the public/ folder s. https://github.com/apioo/fusio-apps-backend/blob/master/src/.htaccess