Skip to content
Navigation Menu
Sign in
Products
Platform
GitHub
Repository hosting, code review, and collaboration
Copilot
AI coding agent for tasks, projects and automated work
Build & Ship
Actions
CI/CD and automation
Code Quality
Quality analysis, fixes, and enforcement
Codespaces
Cloud development environments
Secure
Code Security
Vulnerability detection and remediation
Secret Protection
Secret scanning and leak prevention
All Features
Developers
Learn
Documentation
Training
Certifications
Build
Build with Copilot
Customize Copilot
Integrations
Explore
Trending repos
GitHub Sponsors
Events
Changelog
Changelog
Your source for the latest features, improvements, and fixes across GitHub products, all in one place.
Businesses
By Stage
Enterprises
Team
Startups
Nonprofits
By Industry
Healthcare
Financial services
Manufacturing
Government
See all industries
Evaluate GitHub
Why GitHub
Customer Stories
Business insights
Trust Center
Add-ons
GitHub Advanced Security
Enterprise-grade code security
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Resources
Learn & Connect
Documentation
Resource center
Blog
Events & webinars
Community Forum
Customer Stories
Integrations
Support
Customer support
Training
GitHub Status
Company
About
Partners
Changelog
GitHub Universe
GitHub Universe
The event for developers, by developers β talks, workshops, and whatβs next for GitHub.
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
EAT-SSU
Server
Repository navigation
Code
Issues
28
Β (28)
Pull requests
1
Β (1)
Actions
Security and quality
Insights
More
items
Files
Expand file tree
develop
Breadcrumbs
Server
/
run_validation.sh
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
Β
History
History
History
executable file
Β·
45 lines (37 loc) Β· 1.43 KB
develop
Breadcrumbs
Server
/
run_validation.sh
Copy path
Top
File metadata and controls
Code
Blame
executable file
Β·
45 lines (37 loc) Β· 1.43 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# =========================
# Enum λ°μ΄ν° κ²μ¦ μ€ν¬λ¦½νΈ
# =========================
echo "=========================================="
echo "Enum λ°μ΄ν° κ²μ¦ μμ"
echo "=========================================="
echo ""
# μ¬μ©μμκ² νκ²½ μ ν
read -p "κ²μ¦ν νκ²½μ μ ννμΈμ (dev/prod): " ENV
if [ "$ENV" != "dev" ] && [ "$ENV" != "prod" ]; then
echo "μ€λ₯: 'dev' λλ 'prod'λ§ μ λ ₯ κ°λ₯ν©λλ€."
exit 1
fi
# DB μ μ μ 보 μ λ ₯
read -p "DB νΈμ€νΈλ₯Ό μ λ ₯νμΈμ: " DB_HOST
read -p "DB μ¬μ©μλͺ μ μ λ ₯νμΈμ: " DB_USER
read -sp "DB λΉλ°λ²νΈλ₯Ό μ λ ₯νμΈμ: " DB_PASS
echo ""
read -p "DB μ΄λ¦μ μ λ ₯νμΈμ: " DB_NAME
echo ""
echo "[$ENV νκ²½] λ°μ΄ν° κ²μ¦μ μμν©λλ€..."
echo ""
# κ²μ¦ 쿼리 μ€ν
RESULT_FILE="validation_result_${ENV}_$(date +%Y%m%d_%H%M%S).txt"
mysql -h "$DB_HOST" -u "$DB_USER" -p"$DB_PASS" "$DB_NAME" < validate_enum_data.sql > "$RESULT_FILE" 2>&1
if [ $? -eq 0 ]; then
echo "β κ²μ¦ μλ£! κ²°κ³Ό νμΌμ νμΈνμΈμ: $RESULT_FILE"
echo ""
echo "β οΈ μ€μ: κ²°κ³Ό νμΌμμ μλ λ΄μ©μ νμΈνμΈμ"
echo " - λΆμΌμΉ λ°μ΄ν°κ° μλ κ²½μ°: λ°μ΄ν° μ 리 ν λ€μ κ²μ¦"
echo " - κ²°κ³Όκ° λΉμ΄μλ κ²½μ°: varchar β enum λ³ν μ§ν κ°λ₯"
echo ""
else
echo "β κ²μ¦ μ€ν¨. μ μ μ 보λ₯Ό νμΈνμΈμ."
exit 1
fi
You canβt perform that action at this time.