리비전 페이지 제거 및 트랜잭션 오류 임시 수정
Some checks failed
SonarQube Analysis / SonarQube Scan (push) Has been cancelled
Some checks failed
SonarQube Analysis / SonarQube Scan (push) Has been cancelled
- frontend/src/pages/revision/ 폴더 완전 삭제 - EnhancedRevisionPage.css 제거 - support_details 저장 시 트랜잭션 오류로 인해 임시로 상세 정보 저장 비활성화 - 리비전 기능 재설계 예정
This commit is contained in:
@@ -13,29 +13,40 @@ echo " - DB_PORT: ${DB_PORT:-5432}"
|
||||
echo " - DB_NAME: ${DB_NAME:-tk_mp_bom}"
|
||||
echo " - DB_USER: ${DB_USER:-tkmp_user}"
|
||||
|
||||
# 1. Run complete DB migration
|
||||
echo "Running complete DB migration..."
|
||||
python scripts/complete_migrate.py
|
||||
# 1. Run Docker-optimized migration (includes all new revision/PIPE tables)
|
||||
echo "Running Docker-optimized migration..."
|
||||
python scripts/docker_migrator.py
|
||||
|
||||
migration_result=$?
|
||||
if [ $migration_result -ne 0 ]; then
|
||||
echo "WARNING: DB migration had some errors. Trying to fix missing tables..."
|
||||
python scripts/fix_missing_tables.py
|
||||
fix_result=$?
|
||||
if [ $fix_result -eq 0 ]; then
|
||||
echo "SUCCESS: Missing tables fixed"
|
||||
else
|
||||
echo "WARNING: Some tables may still be missing but starting server anyway"
|
||||
fi
|
||||
if [ $migration_result -eq 0 ]; then
|
||||
echo "SUCCESS: Docker migration completed successfully"
|
||||
else
|
||||
echo "SUCCESS: Complete DB migration finished"
|
||||
echo "WARNING: Docker migration had some issues. Trying fallback methods..."
|
||||
|
||||
# Fallback to legacy migration methods
|
||||
echo "Running legacy complete migration..."
|
||||
python scripts/complete_migrate.py
|
||||
|
||||
legacy_result=$?
|
||||
if [ $legacy_result -ne 0 ]; then
|
||||
echo "WARNING: Legacy migration had errors. Trying to fix missing tables..."
|
||||
python scripts/fix_missing_tables.py
|
||||
fix_result=$?
|
||||
if [ $fix_result -eq 0 ]; then
|
||||
echo "SUCCESS: Missing tables fixed"
|
||||
else
|
||||
echo "WARNING: Some tables may still be missing but starting server anyway"
|
||||
fi
|
||||
else
|
||||
echo "SUCCESS: Legacy migration finished"
|
||||
fi
|
||||
fi
|
||||
|
||||
# Additional safety check for critical tables
|
||||
echo "Verifying critical tables..."
|
||||
python scripts/fix_missing_tables.py
|
||||
|
||||
# Complete schema analysis and fix
|
||||
# Complete schema analysis and fix (for any remaining issues)
|
||||
echo "Running complete schema analysis and fix..."
|
||||
python scripts/analyze_and_fix_schema.py
|
||||
echo "Complete schema analysis completed"
|
||||
|
||||
Reference in New Issue
Block a user