projectbuendia / buendia

Main project repository (see the Wiki for details)
Apache License 2.0
117 stars 36 forks source link

Add automatic forced database upgrades when migration fails. #216

Closed schuyler closed 5 years ago

schuyler commented 5 years ago

Per @zestyping's outline, this PR adds a step to buendia-update which completely refreshes the database on demand, if migration to the latest version is not possible.

This feature is enabled with the UPDATE_FORCE_UPGRADE site setting and it will destroy whatever is in the database after backing up to /var/backups/buendia. Therefore this setting should be used only on demo or testing sites where the contents of the database are not valuable.

This setting is enabled by default in the buendia-site-cloud-demo and buendia-site-test-integration sites.

This PR also includes a change to CI to use buendia-update to upgrade packages on the staging site.