Skip to content
This repository has been archived by the owner on Nov 9, 2021. It is now read-only.

Commit

Permalink
Add downgrade started applications migration
Browse files Browse the repository at this point in the history
  • Loading branch information
loomchild committed Feb 16, 2017
1 parent 726a55c commit 91ff0fc
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,14 @@

def upgrade():
running_applications = docker.get_all_running_applications()
for running_application in running_applications:
user = running_application[0]
application = running_application[1]
for a in running_applications:
user = a[0]
application = a[1]
applications.set_application_started(user, application, True)

def downgrade():
pass
started_applications = applications.get_all_started_applications()
for a in started_applications:
user = a[0]
application = a[1]
applications.set_application_started(user, application, False)

0 comments on commit 91ff0fc

Please sign in to comment.