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:
Dionisio
2026-02-12 14:45:52 +01:00
parent 321fae7dcb
commit ad07a5abda
9 changed files with 58 additions and 26 deletions
@@ -57,16 +57,17 @@ impl StorageUsageService {
let all_folders = self.file_repository.list_files(None).await
.map_err(|e| DomainError::internal_error("File repository", e.to_string()))?;
// Find the user's home folder (usually named "Mi Carpeta - {username}")
let home_folder_name = format!("Mi Carpeta - {}", username);
debug!("Looking for home folder: {}", home_folder_name);
// Find the user's home folder (named "My Folder - {username}" or legacy "Mi Carpeta - {username}")
let home_folder_name = format!("My Folder - {}", username);
let legacy_folder_name = format!("Mi Carpeta - {}", username);
debug!("Looking for home folder: {} or {}", home_folder_name, legacy_folder_name);
let mut total_usage: i64 = 0;
let mut home_folder_id = None;
// Find the home folder ID
// Find the home folder ID (check both new and legacy names)
for folder in &all_folders {
if folder.name() == home_folder_name {
if folder.name() == home_folder_name || folder.name() == legacy_folder_name {
home_folder_id = Some(folder.id().to_string());
debug!("Found home folder for user {}: ID={}", username, folder.id());
break;