karenc / db-migrator

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

Change `dbmigrator list` to list version and migration name separately #32

Closed karenc closed 8 years ago

karenc commented 8 years ago

Change from:

karen@trusty:~/db-migrator (master)$ ./bin/dbmigrator
--config=../cnx-archive/development.ini
--migrations-directory=../cnx-archive/cnxarchive/sql/migrations/ list
name                      | is applied | date applied
----------------------------------------------------------------------
20160101000000_update_fil   True         2016-04-18 23:26:28.835506+01:00
20160128110515_mimetype_o   True         2016-04-18 23:27:05.018055+01:00
20160128111115_mimetype_r   True         2016-04-18 23:26:28.835506+01:00
20160308064742_unique_fil   True         2016-04-18 23:26:28.835506+01:00
20160309072525_collation_   True         2016-04-18 23:26:28.835506+01:00
20160314200432_remove_xml   True         2016-04-18 23:26:28.835506+01:00
20160423022147_add_python   False

to:

karen@trusty:~/db-migrator (list)$ ./bin/dbmigrator --config=../cnx-archive/development.ini --migrations-directory=../cnx-archive/cnxarchive/sql/migrations/ list
version        | name            | is applied | date applied
----------------------------------------------------------------------
20160101000000   update_file_tri   True         2016-04-18 23:26:28.835506+01:00
20160128110515   mimetype_on_fil   True         2016-04-18 23:27:05.018055+01:00
20160128111115   mimetype_remova   True         2016-04-18 23:26:28.835506+01:00
20160308064742   unique_files_by   True         2016-04-18 23:26:28.835506+01:00
20160309072525   collation_schem   True         2016-04-18 23:26:28.835506+01:00
20160314200432   remove_xml_from   True         2016-04-18 23:26:28.835506+01:00
20160423022147   add_python_sql_   False
coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 90.08% when pulling 63c8bafb60240e2c50b25db0e4f57c077f9af791 on list into 000b466649c6fd5dffe9e5dd8f526517314e2727 on master.