Commit 5dac13b1 authored by Ozzie Isaacs's avatar Ozzie Isaacs

Revert change in ub.py

parent 8aebf481
...@@ -673,11 +673,12 @@ def init_db(app_db_path): ...@@ -673,11 +673,12 @@ def init_db(app_db_path):
Session.configure(bind=engine) Session.configure(bind=engine)
session = Session() session = Session()
Base.metadata.create_all(engine)
if os.path.exists(app_db_path): if os.path.exists(app_db_path):
Base.metadata.create_all(engine)
migrate_Database(session) migrate_Database(session)
clean_database(session) clean_database(session)
else: else:
Base.metadata.create_all(engine)
create_admin_user(session) create_admin_user(session)
create_anonymous_user(session) create_anonymous_user(session)
......
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