Differentiate database installs from upgrades in success messages.

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

chipx86
Django Evolution
release-2.x
django-evolution

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
Differentiate database installs from upgrades in success messages.
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.x (1fa44ca)
Loading...