WIP: Relax version constraints for restoring backups and invoke db:migrate after restore

  1. Parse backup and app versions: CE/EE, major/minor/patch
  2. Abort if backup is EE and app is CE: this is likely to be an admin mistake. All other CE/EE combinations are OK.
  3. Abort if backup major/minor/patch is newer than app

Closes #3366 (moved)

Merge request reports