Put db in environment
This commit is contained in:
1 parent
8832f692ac
commit
cdaa2c03e4
3 files changed
+23
-7
No files matched your search
@@ -238,9 +238,9 @@ class Properties(Entity):
|
||||
def setup():
|
||||
"""Setup the database and create the tables that don't exists yet"""
|
||||
from elixir import setup_all, create_all
|
||||
from couchpotato import get_engine
|
||||
from couchpotato.environment import Env
|
||||
|
||||
engine = get_engine()
|
||||
engine = Env.getEngine()
|
||||
|
||||
setup_all()
|
||||
create_all(engine)
|
||||
|
||||
Reference in new issue
Block a user