Skip to content

Commit

Permalink
#107 Bug fix for Alembic migration
Browse files Browse the repository at this point in the history
  • Loading branch information
mblomdahl committed Nov 23, 2017
1 parent 611fc15 commit b4aa5df
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,8 @@ def default_scopes(self, value):
for permission in session.query(Permission).all():
permission.created_by = superuser
permission.modified_by = superuser
if not permission.modified_at:
permission.modified_at = permission.created_at
permission.save_as(superuser, preserve_modified=True)

for user in session.query(User).all():
Expand Down

0 comments on commit b4aa5df

Please sign in to comment.