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:
@@ -71,11 +71,11 @@ done
|
||||
echo "✅ PostgreSQL is ready"
|
||||
echo ""
|
||||
|
||||
# Create databases (if needed)
|
||||
echo "📊 Creating databases..."
|
||||
docker-compose -f "$COMPOSE_FILE" exec -T postgres psql -U cmdb -c "CREATE DATABASE cmdb_cache;" 2>/dev/null || echo "ℹ️ Database cmdb_cache already exists or will be created automatically"
|
||||
docker-compose -f "$COMPOSE_FILE" exec -T postgres psql -U cmdb -c "CREATE DATABASE cmdb_classifications;" 2>/dev/null || echo "ℹ️ Database cmdb_classifications already exists or will be created automatically"
|
||||
echo "✅ Databases ready"
|
||||
# Create database (if needed)
|
||||
echo "📊 Creating database..."
|
||||
echo " Note: Single database is used by default (contains all tables)"
|
||||
docker-compose -f "$COMPOSE_FILE" exec -T postgres psql -U cmdb -c "CREATE DATABASE cmdb_insight;" 2>/dev/null || echo "ℹ️ Database cmdb_insight already exists or will be created automatically"
|
||||
echo "✅ Database ready"
|
||||
echo ""
|
||||
|
||||
echo "✨ PostgreSQL database has been reset!"
|
||||
|
||||
Reference in New Issue
Block a user