Revert change in ub.py
This commit is contained in:
parent
8aebf48193
commit
5dac13b1da
1 changed files with 2 additions and 1 deletions
|
@ -673,11 +673,12 @@ def init_db(app_db_path):
|
|||
Session.configure(bind=engine)
|
||||
session = Session()
|
||||
|
||||
Base.metadata.create_all(engine)
|
||||
if os.path.exists(app_db_path):
|
||||
Base.metadata.create_all(engine)
|
||||
migrate_Database(session)
|
||||
clean_database(session)
|
||||
else:
|
||||
Base.metadata.create_all(engine)
|
||||
create_admin_user(session)
|
||||
create_anonymous_user(session)
|
||||
|
||||
|
|
Loading…
Reference in a new issue