Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
Merge pull request #69 from lendingblock/master
Browse files Browse the repository at this point in the history
0.5.2
  • Loading branch information
lsbardel authored Aug 2, 2018
2 parents 7f412fa + 85f11fa commit a7bab5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion openapi/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Minimal OpenAPI asynchronous server application
"""

__version__ = '0.5.1'
__version__ = '0.5.2'
5 changes: 2 additions & 3 deletions openapi/db/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,9 @@ def upgrade(ctx, revision, drop_tables):
"""
if drop_tables:
app = ctx.obj['app']
metadata = app['metadata']
engine = app['store']
metadata.reflect(engine)
metadata.drop_all(engine)
engine.execute("DROP SCHEMA IF EXISTS public CASCADE")
engine.execute("CREATE SCHEMA IF NOT EXISTS public")
click.echo("tables dropped")
migration(ctx).upgrade(revision)
click.echo("upgraded sucessfuly")
Expand Down

0 comments on commit a7bab5a

Please sign in to comment.