nextcloud-contacts: "Run `occ upgrade`"

Whenever I update nextcloud-contacts, it always tells me:

Code:
Message from nextcloud-contacts-php82-6.1.3:

--
Run `occ upgrade` to update the Nextcloud contacts app database structure

I think other Nextcloud apps also tell me similar things. Anyway, I do so, and then occ upgrade tells me:

Code:
Nextcloud is already latest version

The lack of anything explicitly related to the contacts app in the output of occ upgrade concerns me, as I can imagine at least a couple very different interpretations that both seem reasonable:
  • "(1) You might have to run occ upgrade (literally) to upgrade the contacts app's db structure, but (2) Hey, no, turns out you didn't have to"
  • "(1) You might have to use occ upgrade (with whatever options make it upgrade the contacts app's db structure), and (2) There was no need for you to have run occ upgrade literally"
So I'm always left wondering: Did I upgrade the contact app's db structure? Or I guess more exactly: Did I do what needed to be done if the contact app's db structure needed to be upgraded?
 
The lack of anything explicitly related to the contacts app in the output of occ upgrade concerns me, as I can imagine at least a couple very different interpretations that both seem reasonable:
  • "(1) You might have to run occ upgrade (literally) to upgrade the contacts app's db structure, but (2) Hey, no, turns out you didn't have to"
It looks very much that this one is the case. The message gets generated automatically by the ports framework when the package gets created (see Mk/Uses/nextcloud.mk.) As there is no way at package build time to rule out the need to upgrade the database at install time, you'll see the message each time. I'm not familiar with nextcloud-contacts, but the name suggests having a fairly clearly defined purpose. I'd therefore expect changes to the database structure to be somewhat rare.
 
Back
Top