Puts database into a subfolder
All checks were successful
deployment / deployment (push) Successful in 17s
All checks were successful
deployment / deployment (push) Successful in 17s
This commit is contained in:
parent
277b2aec57
commit
0bc3cac6f5
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@ from sqlalchemy import create_engine
|
||||||
from sqlalchemy.ext.declarative import declarative_base
|
from sqlalchemy.ext.declarative import declarative_base
|
||||||
from sqlalchemy.orm import sessionmaker
|
from sqlalchemy.orm import sessionmaker
|
||||||
|
|
||||||
SQLALCHEMY_DATABASE_URL = "sqlite:///./inventory.sqlite3"
|
SQLALCHEMY_DATABASE_URL = "sqlite:///./data/inventory.sqlite3"
|
||||||
|
|
||||||
engine = create_engine(
|
engine = create_engine(
|
||||||
SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}, echo=True
|
SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False}, echo=True
|
||||||
|
|
Loading…
Reference in a new issue