fix: auto-apply DB schema on fresh install and fix admin registration (#81)
- Auto-apply schema.sql when database tables don't exist (embedded in binary) - Handle missing tables gracefully during admin registration (treat as fresh install) - Fix docker-compose depends_on to wait for postgres healthcheck - Rename personal folder from 'Mi Carpeta' to 'My Folder' with backward compat - Translate remaining Spanish messages to English
This commit is contained in:
@@ -19,10 +19,15 @@ const WRITE_BEHIND_THRESHOLD: usize = 256 * 1024;
|
||||
|
||||
/// Helper function to extract username from folder path string
|
||||
fn extract_username_from_path(path: &str) -> Option<String> {
|
||||
if !path.contains("Mi Carpeta - ") {
|
||||
// Support both new ("My Folder - ") and legacy ("Mi Carpeta - ") prefixes
|
||||
let prefix = if path.contains("My Folder - ") {
|
||||
"My Folder - "
|
||||
} else if path.contains("Mi Carpeta - ") {
|
||||
"Mi Carpeta - "
|
||||
} else {
|
||||
return None;
|
||||
}
|
||||
let parts: Vec<&str> = path.split("Mi Carpeta - ").collect();
|
||||
};
|
||||
let parts: Vec<&str> = path.split(prefix).collect();
|
||||
if parts.len() <= 1 {
|
||||
return None;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user