Skip to content

Commit

Permalink
Fix DB migration logging. (#1986)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastienvercammen committed Apr 26, 2017
1 parent f699024 commit bbc0590
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pogom/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -2751,10 +2751,12 @@ def database_migrate(db, old_ver):
migrate(
migrator.add_index('pokestop', ('last_updated',), False)
)
log.info('Schema upgrade complete.')

if old_ver < 17:
migrate(
migrator.add_column('pokemon', 'form',
SmallIntegerField(null=True))
)

# Always log that we're done.
log.info('Schema upgrade complete.')

0 comments on commit bbc0590

Please sign in to comment.