ReyDev Posted September 6, 2022 Share Posted September 6, 2022 In the new version of one of my apps, I want to update a new field that I have created (Database Schema) with a value. I used the upgrade.php file and wrote the necessary codes in the step1 method, but it does not work. what should I do? Link to comment Share on other sites More sharing options...
Adriano Faria Posted September 6, 2022 Share Posted September 6, 2022 (edited) Have you increased the long version and tried to upgrade? You need to install the old version of the app somewhere else and then upload the new version. Edited September 6, 2022 by Adriano Faria Link to comment Share on other sites More sharing options...
ReyDev Posted September 6, 2022 Author Share Posted September 6, 2022 11 minutes ago, Adriano Faria said: Have you increased the long version and tried to upgrade? No, i tried on my live website that had old version. didn't work 12 minutes ago, Adriano Faria said: You need to install the old version of the app somewhere else and then upload the new version. I did, but it doesn't work. Link to comment Share on other sites More sharing options...
Adriano Faria Posted September 6, 2022 Share Posted September 6, 2022 If you didn't increase the long version, it won't upgrade. Basically because you're installing/upgrading to the same version. In that case, the upgrade.php won't run. Link to comment Share on other sites More sharing options...
ReyDev Posted September 6, 2022 Author Share Posted September 6, 2022 4 minutes ago, Adriano Faria said: If you didn't increase the long version, it won't upgrade. Basically because you're installing/upgrading to the same version. In that case, the upgrade.php won't run. so what should i do ? Link to comment Share on other sites More sharing options...
Solution Adriano Faria Posted September 6, 2022 Solution Share Posted September 6, 2022 In the Dev Center, add the upgrade.php in the Version currently being developed version then build application and choose Build New Version. The ID Number (long version) should be higher than the version you have in marketplace. You should change the Version (human version) too but that's not required. Save. Download. Test in another install. ReyDev 1 Link to comment Share on other sites More sharing options...
ReyDev Posted September 6, 2022 Author Share Posted September 6, 2022 I did all these things. I think there is a conflict. I'm going to make a new version and try again. anyway, thanks for your reply. Link to comment Share on other sites More sharing options...
ReyDev Posted September 6, 2022 Author Share Posted September 6, 2022 12 minutes ago, Adriano Faria said: In the Dev Center, add the upgrade.php in the Version currently being developed version then build application and choose Build New Version. The ID Number (long version) should be higher than the version you have in marketplace. You should change the Version (human version) too but that's not required. Save. Download. Test in another install. SOLVED! The issue was with the ID Number. Thanks Adriano Faria 1 Link to comment Share on other sites More sharing options...
Recommended Posts