Skip to content

Commit eddfc6c

Browse files
committed
Report schema version as part of migrate command.
Provide some feedback on the current schema version. Make debugging/info gathering easier than having the user run SQL.
1 parent 5a45d31 commit eddfc6c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

roundup/admin.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1739,10 +1739,12 @@ def do_migrate(self, args):
17391739
into the habit.
17401740
"""
17411741
if self.db.db_version_updated:
1742-
print(_('Tracker updated'))
1742+
print(_('Tracker updated to schema version %s.') %
1743+
self.db.database_schema['version'])
17431744
self.db_uncommitted = True
17441745
else:
1745-
print(_('No migration action required'))
1746+
print(_('No migration action required. At schema version %s.') %
1747+
self.db.database_schema['version'])
17461748
return 0
17471749

17481750
def run_command(self, args):

0 commit comments

Comments
 (0)