Spaces:
Running
Running
Isaac Quarenta commited on
Commit ·
ef24a6e
1
Parent(s): 88f2d53
fix: add numero_usuario column to user_emotional_profiles table
Browse files- EmotionalProfileManager expects 'numero_usuario' column
- Fixes error: table user_emotional_profiles has no column named numero_usuario
- modules/database.py +1 -1
modules/database.py
CHANGED
|
@@ -503,7 +503,7 @@ class Database:
|
|
| 503 |
c.executescript("""
|
| 504 |
CREATE TABLE IF NOT EXISTS user_emotional_profiles (
|
| 505 |
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
| 506 |
-
|
| 507 |
dominant_emotion TEXT DEFAULT 'neutral',
|
| 508 |
emotion_history TEXT DEFAULT '[]',
|
| 509 |
last_updated DATETIME DEFAULT CURRENT_TIMESTAMP
|
|
|
|
| 503 |
c.executescript("""
|
| 504 |
CREATE TABLE IF NOT EXISTS user_emotional_profiles (
|
| 505 |
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
| 506 |
+
numero_usuario TEXT UNIQUE,
|
| 507 |
dominant_emotion TEXT DEFAULT 'neutral',
|
| 508 |
emotion_history TEXT DEFAULT '[]',
|
| 509 |
last_updated DATETIME DEFAULT CURRENT_TIMESTAMP
|