1. Andrew Godwin
  2. south
  3. Pull requests

Pull requests

#12 Merged at 5f982f4
Repository
andrewgodwin
Branch
default

For manage.py migrate --list <app_name> --verbosity=2, print the datetime that migrations were applied.

Author
  1. Marc Abramowitz
Reviewers
Description

I did this change to my local South to make sense of a confusing, borked migration history where migrations with lower numbers had been applied before migrations with higher numbers.

I figured that this might be useful to others.

Comments (1)

  1. Marc Abramowitz author

    Here's what this looks like:

    $ django migrate --list dummyapp              
    
     dummyapp
      (*) 0001_initial
      (*) 0002_auto__add_field_dog_breed
      ( ) 0003_auto__add_field_dog_color
    
    $ django migrate --list dummyapp --verbosity=2
    
     dummyapp
      (*) 0001_initial                                                              (applied 2011-10-06 22:11:20.712978)
      (*) 0002_auto__add_field_dog_breed                                            (applied 2011-10-06 22:18:13.085858)
      ( ) 0003_auto__add_field_dog_color