further improvements to upgrade process for large environments
upgrades are currently performed on core and information in the database, but not all apps. However in the following scenario this leads to problems:
- oC server version A has been used, with LDAP App activated.
- Due to environment changes, LDAP App is disabled, and Shibboleth is used.
- upgrade of oC server to version B
- in the meantime many user are on the server(s)
- LDAP App shall be activated again
- oC runs straigth in an upgrade process for the LDAP App.
Would it not possible to perform all upgrade task during the upgrade process, even if an App is not activated at that moment. Considering long running projects, and upgrade paths from a,b,c,d,e,f etc versions, upgrade of Apps may fail as they may have been active in older versions, but have not been activated on version d and e, but again shall be activated on version f.
For large environments, this may lead to problems in the future.
I think this is the wrong way. I think upgrading deactivated apps too is the wrong way regarding the upgrade steps. It only is another workaround. We should introduce migration steps that are persistent even for skipped version upgrades. Also the re-activation of an app is kind of critical. Maybe we just run the migration steps for the re-activation of an app just before the activate step, because you don't need to stop functionality before the code is even loaded.
related tickets:
- app upgrade looks like a core upgrade: #14977
- doctrine migrations #13820 #14851
Quite hard to realize. Upgrade means database schema migeations. Why should we generate/modify tables for apps which are not intended to be used?
This somewhat falls into the arwa of zero-downtime-upgrade where we honestly have no real solution yet.
ref https://github.com/owncloud/core/issues/18721