Skip to content

Migration status display post deployment migraions

Related to: #220 (closed)

This MR displays (post deployment) by the name of post deployment migrations in the migrate status command:

$ ./bin/registry database migrate status config.yml
+------------------------------------------------------+--------------------------------------+
|                      MIGRATION                       |               APPLIED                |
+------------------------------------------------------+--------------------------------------+
| 20200319122755_create_repositories_table             | 2020-10-30 21:09:15.280575 +0000 UTC |
| 20200319130108_create_blobs_table                    | 2020-10-30 21:09:15.29452 +0000 UTC  |
| 20200319131542_create_configurations_table           | 2020-10-30 21:09:15.310109 +0000 UTC |
| 20200319131542_create_manifests_table                | 2020-10-30 21:09:15.328429 +0000 UTC |
| 20200319131632_create_manifest_layers_table          | 2020-10-30 21:09:15.345941 +0000 UTC |
| 20200319132010_create_manifest_references_table      | 2020-10-30 21:09:15.361387 +0000 UTC |
| 20200319132237_create_tags_table                     | 2020-10-30 21:09:15.378357 +0000 UTC |
| 20200408192311_create_repository_manifests_table     | 2020-10-30 21:09:15.393456 +0000 UTC |
| 20200527132906_create_repository_blobs_table         | 2020-10-30 21:09:15.408408 +0000 UTC |
| 20201030140824_drop_table_students (post deployment) | 2020-10-30 21:09:37.84997 +0000 UTC  |
+------------------------------------------------------+--------------------------------------+

A migration cannot both be unknown and a post deployment migration, so we're not in danger of having multiple parentheticals beside migration IDs.

Merge request reports

Loading