Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
customer-recall
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tools
customer-recall
Commits
8d193eaa
Commit
8d193eaa
authored
Sep 10, 2025
by
luoqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:数据库备份
parent
95a2e798
Pipeline
#3227
passed with stage
in 23 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
database/scripts/migration_manager.py
+1
-1
No files found.
database/scripts/migration_manager.py
View file @
8d193eaa
...
@@ -94,7 +94,7 @@ def backup_database():
...
@@ -94,7 +94,7 @@ def backup_database():
backup_file
=
backup_dir
/
f
"backup_before_migration_{timestamp}.sql"
backup_file
=
backup_dir
/
f
"backup_before_migration_{timestamp}.sql"
# 构建备份命令
# 构建备份命令
backup_command
=
f
"
docker exec patient_callback_mysql mysqldump
-u callback_user -pdev_password_123 callback_system > {backup_file}"
backup_command
=
f
"
mysqldump -h mysql
-u callback_user -pdev_password_123 callback_system > {backup_file}"
print
(
f
"📁 备份文件: {backup_file}"
)
print
(
f
"📁 备份文件: {backup_file}"
)
return
run_command
(
backup_command
,
f
"备份数据库到 {backup_file.name}"
)
return
run_command
(
backup_command
,
f
"备份数据库到 {backup_file.name}"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment