Unifi-Voucher-Tool/updater/migrations/0004_db_sessions.sql
Claude 1a51721477
DB-gestützte Sessions (opt-in) + 'überall abmelden'
- includes/DbSessionHandler.php (SessionHandlerInterface, fehlertolerant)
- Auth: opt-in-Registrierung (Setting session_driver=db), activeSessionCount(),
  logoutOtherSessions()
- Migration 0004 (sessions.user_id NULL) + database.sql
- Settings-Toggle in integrations.php; 'überall abmelden' in security.php
2026-06-06 05:49:53 +00:00

5 lines
240 B
SQL

-- Updater-Migration: DB-gestützte Sessions zulassen.
-- user_id muss NULL erlauben (anonyme Sessions vor dem Login).
-- Idempotent genug: bei bereits NULL-barer Spalte ist das ein No-Op.
ALTER TABLE `sessions` MODIFY `user_id` INT NULL;