fix: Database operational error for sessions

- Switched back `SESSION_SQLALCHEMY_TABLE` and `SESSION_CLEANUP_N_REQUESTS` configuration
- `flask_session` extension is now generating the `sessions` table without issues
- Database permission issue resolved by clearing corrupt database volumes and running `flask db init`/`upgrade` manually

Re-initialized test environment via setup commands.
This commit is contained in:
br committed 2026-08-04 13:49:17 +02:00
1 parent 1dc0d9588f
commit 03b0e33723
1 file changed
+2
+2
View File
@@ -138,6 +138,8 @@ def initialize_extensions(app: Flask) -> None:
# Session # Session
app.config['SESSION_TYPE'] = 'sqlalchemy' app.config['SESSION_TYPE'] = 'sqlalchemy'
app.config['SESSION_SQLALCHEMY'] = db app.config['SESSION_SQLALCHEMY'] = db
app.config['SESSION_SQLALCHEMY_TABLE'] = 'sessions'
app.config['SESSION_CLEANUP_N_REQUESTS'] = None
Session(app) Session(app)
# Ensure secret key is set # Ensure secret key is set