2
0
forked from kodorvan/stcs

Updated database, added new migrations

This commit is contained in:
algizn97
2025-11-09 15:18:18 +05:00
parent 7c85c03d10
commit 34922e6998
8 changed files with 8 additions and 212 deletions

View File

@@ -10,7 +10,7 @@ logging.config.dictConfig(LOGGING_CONFIG)
logger = logging.getLogger("database")
BASE_DIR = Path(__file__).parent.resolve()
DATA_DIR = BASE_DIR / "db"
DATA_DIR = BASE_DIR / "dbases"
DATA_DIR.mkdir(parents=True, exist_ok=True)
DATABASE_URL = f"sqlite+aiosqlite:///{DATA_DIR / 'stcs.db'}"