fix(db): stabilize connection settings and explicitly define AppConfig table name
- Set SQL connection idle limit to 1 to reduce resource usage - Explicitly define AppConfig table name to prevent GORM pluralization issues
This commit is contained in:
@@ -19,6 +19,11 @@ type AppConfig struct {
|
||||
FirstRun bool // Is this the first time the application has been run?
|
||||
}
|
||||
|
||||
// Explicit table name to avoid pluralization issues
|
||||
func (AppConfig) TableName() string {
|
||||
return "app_configs" // Use your ACTUAL table name (check with: sqlite3 database.sqlite ".tables")
|
||||
}
|
||||
|
||||
type Log struct {
|
||||
gorm.Model
|
||||
Timestamp int64
|
||||
|
||||
Reference in New Issue
Block a user