Puts database into a subfolder
All checks were successful
deployment / deployment (push) Successful in 17s

This commit is contained in:
snoopy 2024-04-30 02:14:18 +02:00
parent 277b2aec57
commit 0bc3cac6f5

View file

@ -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