• 
      

    Differentiate database installs from upgrades in success messages.

    Review Request #12313 — Created May 31, 2022 and submitted

    Information

    Django Evolution
    release-2.x

    Reviewers

    When running the evolver, we've historically shown the message "The
    database upgrade was successful!" This made sense back before the entire
    database setup and upgrade process was controlled by Django Evolution.
    Now, since it handles population of the initial database, this message
    isn't enough.

    We now track whether this appears to be a brand-new install vs. an
    upgrade (based on the presence of the Version and Evolution models
    in the database), and use that to determine which message to display.

    Tested installing a new database and upgrading an old one. Saw the
    correct message in both circumstances.

    Summary ID
    Differentiate database installs from upgrades in success messages.
    When running the evolver, we've historically shown the message "The database upgrade was successful!" This made sense back before the entire database setup and upgrade process was controlled by Django Evolution. Now, since it handles population of the initial database, this message isn't enough. We now track whether this appears to be a brand-new install vs. an upgrade (based on the presence of the `Version` and `Evolution` models in the database), and use that to determine which message to display.
    5d64c562eaf42067247cb5c056d1b7a194e97aab
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-2.x (1fa44ca)