Commit c4947a61 authored by yalh76's avatar yalh76

Adding quiet argument for db migration

parent 07e1997c
......@@ -47,6 +47,8 @@ parser.add_argument('--email', required=False, help="email")
parser.add_argument('--is_admin', required=False, help="is_admin")
parser.add_argument('-q', '--quiet', action="store_false")
parser.add_argument('-m', '--migrate',
dest="command",
help="created database",
......@@ -70,6 +72,6 @@ elif args.command == 'usercreate':
elif args.command == 'travis':
travis_setup()
elif args.command == 'migrate':
migrate()
migrate(interactive=args.quiet)
else:
print("No command found")
\ No newline at end of file
......@@ -62,5 +62,5 @@ def create_tables():
if not table.table_exists():
table.create_table()
def migrate():
db.evolve()
\ No newline at end of file
def migrate(interactive=True):
db.evolve(interactive=interactive)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment