ReyDev Posted September 6, 2022 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?
Adriano Faria Posted September 6, 2022 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
ReyDev Posted September 6, 2022 Author 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.
Adriano Faria Posted September 6, 2022 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.
ReyDev Posted September 6, 2022 Author 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 ?
Solution Adriano Faria Posted September 6, 2022 Solution 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
ReyDev Posted September 6, 2022 Author 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.
ReyDev Posted September 6, 2022 Author 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
Recommended Posts