Only have one db.create_all(), and that in dbmanager
This commit is contained in:
parent
57ffa71c86
commit
b3bd93d71c
@ -36,7 +36,6 @@ if DATABASE_URL is None:
|
||||
if "unittest" in sys.modules and "sqlite" not in DATABASE_URL:
|
||||
raise ValueError("Unit tests running on non-Sqlite database")
|
||||
db = DatabaseManager.get_instance(DATABASE_URL, engine_options=Config.ENGINE_OPTIONS).db
|
||||
db.create_all()
|
||||
|
||||
|
||||
# Database classes
|
||||
|
||||
Loading…
Reference in New Issue
Block a user