karenc / db-migrator

GNU Affero General Public License v3.0
4 stars 5 forks source link

Listing migrations #2

Closed mmulich closed 8 years ago

mmulich commented 8 years ago

I'm feeling the need for an introspection command that will list the migrations (including those that have not yet been applied).

Something like:

$ dbmigrator list
name                 | is applied   | date applied
20160130025828_smoo    True           2016-01-30 02:52:28.39417-08
20160130025832_foo     False
20160130025835_bar     False
karenc commented 8 years ago

Looks like this :)

$ dbmigrator list
name                      | is applied | date applied
----------------------------------------------------------------------
20151217170514_add_id_to_   True         2016-01-31 00:15:01.692570+01:00
20151218145832_add_karen_   False
20160107200351_blah         False