• Robert Speicher's avatar
    Merge branch 'drop_db_before_restore' into 'master' · 3129e135
    Robert Speicher authored
    Reload the schema before restoring a database backup
    
    If a user tries to downgrade and restore after a failed upgrade,
    the database may still contain newer tables. Reload the older
    schema before restoring the database to avoid future upgrade
    problems. Also, add a rake task to help users add migration
    versions to the database so it's easier to recover from these
    errors if they do occur. Fixes #13419
    
    See merge request !2807
    3129e135
restore_after_failure.md 2.71 KB