Stéphan Sainléger
82b4713f02
[NEW] add post-migration views validation process
2026-02-04 11:38:55 +01:00
Stéphan Sainléger
54057611eb
[IMP] include Elabore and Lokavaluto add-ons in missing add-ons detection process
2026-02-04 00:04:39 +01:00
Stéphan Sainléger
ee27536011
[FIX] use relative path for compose to avoid 0k dev-pack IOError
...
The 0k dev-pack's compose script doesn't handle absolute paths correctly.
It passes HOST_COMPOSE_YML_FILE to the container, which tries to open
it directly instead of using the mounted path.
Add run_compose() wrapper that changes to PROJECT_ROOT before calling
compose with a relative path, ensuring consistent behavior regardless
of the current working directory.
2026-02-03 17:15:20 +01:00
Stéphan Sainléger
8d2b151a85
[IMP] update all script paths for new directory structure
...
Update all path references to match the new directory layout:
upgrade.sh:
- ./prepare_db.sh -> ${SCRIPT_DIR}/scripts/prepare_db.sh
- ./finalize_db.sh -> ${SCRIPT_DIR}/scripts/finalize_db.sh
- ${SCRIPT_DIR}/${version}.0/ -> ${SCRIPT_DIR}/versions/${version}.0/
scripts/prepare_db.sh:
- pre_migration_view_checking.py -> ${SCRIPT_DIR}/lib/python/check_views.py
scripts/finalize_db.sh:
- post_migration_fix_duplicated_views.py -> ${SCRIPT_DIR}/lib/python/fix_duplicated_views.py
- post_migration_cleanup_obsolete_modules.py -> ${SCRIPT_DIR}/lib/python/cleanup_modules.py
versions/*/upgrade.sh:
- ../compose.yml -> ../../config/compose.yml
2026-02-02 22:11:15 +01:00
Stéphan Sainléger
245ddcc3f9
[IMP] reorganize project directory structure
...
Restructure the project for better organization and maintainability:
New structure:
./upgrade.sh - Main entry point (unchanged)
./lib/common.sh - Shared bash functions
./lib/python/ - Python utility scripts
./scripts/ - Workflow scripts (prepare_db, finalize_db)
./config/ - Configuration files (compose.yml)
./versions/{13..18}.0/ - Version-specific migration scripts
File renames:
- pre_migration_view_checking.py -> lib/python/check_views.py
- post_migration_fix_duplicated_views.py -> lib/python/fix_duplicated_views.py
- post_migration_cleanup_obsolete_modules.py -> lib/python/cleanup_modules.py
Benefits:
- Single entry point visible at root level
- Clear separation between shared code, scripts, and config
- Shorter, cleaner Python script names (context given by caller)
- Easier navigation and maintenance
2026-02-02 22:10:01 +01:00