Consolidate documentation and update backend services

- Reorganize docs into 'Core deployment guides' and 'Setup and configuration' subdirectories
- Consolidate redundant documentation files (ACR, pipelines, deployment guides)
- Add documentation consolidation plan
- Update backend database factory and logger services
- Update migration script and docker-compose configurations
- Add PostgreSQL setup script
This commit is contained in:
2026-01-22 22:45:54 +01:00
parent 18aec4ad80
commit f4399a8e4e
49 changed files with 1320 additions and 7243 deletions

View File

@@ -129,7 +129,7 @@ If you want to clear data but keep the database structure:
```bash
# Connect to database
docker-compose exec postgres psql -U cmdb -d cmdb_cache
docker-compose exec postgres psql -U cmdb -d cmdb_insight
# Clear all data (keeps schema)
TRUNCATE TABLE attribute_values CASCADE;
@@ -175,7 +175,7 @@ EOF
- ✅ All relations (`object_relations` table)
- ❌ Schema cache (kept for faster schema discovery)
- ❌ Schema mappings (kept for configuration)
- ❌ User data and classifications (separate database)
- ❌ User data and classifications (stored in same database, but not cleared by cache clear)
### Cleared by Volume Reset:
- ✅ Everything above
@@ -189,7 +189,7 @@ After reset, verify the database is empty and ready for rebuild:
```bash
# Check object counts (should be 0)
docker-compose exec postgres psql -U cmdb -d cmdb_cache -c "
docker-compose exec postgres psql -U cmdb -d cmdb_insight -c "
SELECT
(SELECT COUNT(*) FROM objects) as objects,
(SELECT COUNT(*) FROM attribute_values) as attributes,