/
WebsiteSupport

Docs

Updating OptiraPOS

Updates run from a screen in Settings. This page explains how to update safely, what the system does for you, how to get ready, and what to do if something stops.

3 min read

Before you update

  1. Read the release notes.
  2. Pick a quiet time. Not in the middle of a busy Saturday, and not at the end of the month.
  3. Close all open till sessions.
  4. Make your own backup of the database and the storage/ folder. See Backups and security.

Update

  1. Download the new version from Downloads in your account.
  2. Put the update .zip in storage/app/private/updates on your server. Then press Scan for packages in SettingsGeneralUpdates. Or, on the same screen, upload the .zip from your computer: it goes up in pieces, so hosting limits do not stop it, though a large package is quicker by FTP. Or upload the new files over your installation, leaving .env, storage/ and public/storage untouched.
  3. In SettingsGeneralUpdates, press Start update, then Finish the update. Keep the browser tab open while it runs.

What the system does

  1. It checks the system.
  2. It backs up the database.
  3. It verifies every file in the new release.
  4. It applies the database changes, one at a time.
  5. It brings the shop back online.

If anything stops it, the shop comes back on its own, and you can continue from where it stopped.

After you update

Run a short check of your own.

  • Sign in, and see the new version number in SettingsGeneralUpdates.
  • Open a till, make a test sale and print a receipt.
  • Open a recent invoice.
  • Reload with Ctrl+F5 if a page looks wrong.

Coming from an earlier version: sessions that held a tip

A closed till session that held a tip may have stayed in draft under an earlier version, so it has no entry in your books yet. After you update, whoever runs your server books these with a command. This is the one step on this page that uses the command line, and there is no screen for it in 1.0.

  1. See what it would book. This writes nothing: php artisan accounting:backfill --sessions --dry-run
  2. Book it: php artisan accounting:backfill --sessions

To work on one company, add --company= with its number to either command. Each tip goes to the company's default income account.

Knowing your version

SettingsGeneralUpdates shows Installed files, the version of the program, and Finished up to, the version your data is on. When nothing is waiting, it says "This install is up to date. Nothing to finish." You will need the version number whenever you ask for support. See Licence and support.

Should you always update?

Yes, soon after each release. Updates include security fixes, so a site left behind for months is a risk. If you depend on a custom change, test it first.

See also