diff --git a/db/2016-05-16-add-lockup-versioning.sql b/db/2016-05-16-add-lockup-versioning.sql index 5404a4c40d051657124e675d06ca84195d16a756..0d288631067e788006b5b4e251e8ee70556b92db 100644 --- a/db/2016-05-16-add-lockup-versioning.sql +++ b/db/2016-05-16-add-lockup-versioning.sql @@ -1,2 +1,4 @@ ALTER TABLE lockups -ADD COLUMN `version` varchar(255) DEFAULT '1.0'; \ No newline at end of file +ADD COLUMN `version` varchar(255) DEFAULT NULL; + +UPDATE lockups SET version = '1.0' WHERE status = 'generated'; \ No newline at end of file diff --git a/src/Views/manage_lockups.php b/src/Views/manage_lockups.php index 956a929dbd0d84824a424b0b9dc001beb7efd3a7..cb1b2b504391e259713e50c84dd93e414163feb0 100644 --- a/src/Views/manage_lockups.php +++ b/src/Views/manage_lockups.php @@ -10,6 +10,7 @@ <th>Submitter</th> <th>Approver</th> <th>Status</th> + <th>Version</th> <th class="right">Actions</th> </tr> </thead> @@ -21,6 +22,7 @@ <td><?php echo $lockup->user->username ?></td> <td><?php echo $lockup->getApproverName(); ?></td> <td><?php echo $lockup->getFullStatusText(); ?></td> + <td><?php echo $lockup->version; ?></td> <td class="table-actions right" style="min-width: 200px;"> <?php if ($lockup->isEditable()): ?> <a class="wdn-button wdn-button-triad" href="<?php echo $lockup->getEditURL(); ?>">Edit</a>