tuan-tu-tran / ades

Plate-forme web de gestion de dossiers d'élèves pour éducateurs scolaires
www.educ-action.be
GNU General Public License v3.0
0 stars 0 forks source link

Propose backup restore in case of code rollback #89

Closed tuan-tu-tran closed 9 years ago

tuan-tu-tran commented 9 years ago

If a downgrade is detected, i.e. db version in code < version stored in code, the application is blocked.

This happens when the code is upgraded, causing a db upgrade (#27), then the code is rolled back to a previous version. Typically, this would happen if a the new version is affected by a critical bug and we need to rollback to the previous version.

In this case, the application refuses to run because the code version is lower than the version stored in db. The only way to resolve this is to:

With this issue, when such a situation is detected, the page will propose a list of possible backups to restore, so that the db is rolled back to a version compatible with the code.

In combination with #78, we should always be able to rollback to the situation before the new code was deployed.

tuan-tu-tran commented 9 years ago

If the user is not logged, a backup cannot be restored: