mirror of
https://github.com/opensourcepos/opensourcepos.git
synced 2025-12-24 01:57:51 -05:00
1.5 KiB
1.5 KiB
How to Upgrade
Warning
Not updated for upcoming CodeIgniter4 release (3.4.0 and subsequent versions).
- Back up all your current database and OSPOS code.
- Make sure you have a copy of
application/config/config.phpandapplication/config/database.php. - Remove all directories.
- Install the new OSPOS.
- (Only applicable if upgrading from pre
3.0.0) Run the database upgrade scripts fromdatabasedir (check which ones you need according to the version you are upgrading from). - Take the saved old
config.phpand upgrade the newconfig.phpwith any additional changes you made in the old. Take time to understand if new config rules require some changes (e.g. encryption keys). - Take the saved old
database.phpand change the newdatabase.phpto contain all the configurations you had in the old setup. Please try not to use the old layout, use the new one and copy the content of the config variables. - Restore the content of the old
uploadsfolder intopublic/uploadsone. - Once the new code is in place, the database is manually updated, and the config files are in place, you're good to go.
- The first login will take longer because OSPOS post
3.0.0will upgrade automatically to the latest version. - If everything went according to plan, you'll be able to use your upgraded version of OSPOS.
- Still have issues? Please check the README and GitHub issues. Maybe a similar issue has already been reported, and you can find your answer there.