db-migrate
โดย medusajs
ดำเนินการย้ายฐานข้อมูล Medusa ที่รออยู่และรายงานผลลัพธ์ รัน npx medusa db:migrate ผ่าน Bash เพื่อใช้การย้ายข้อมูลที่รออยู่ทั้งหมดไปยังฐานข้อมูล Medusa ของคุณ รายงานผลลัพธ์การย้ายข้อมูล รวมถึงจำนวนการย้ายข้อมูลที่ถูกนำไปใช้ ข้อผิดพลาดที่พบ และการยืนยันความสำเร็จ ออกแบบมาสำหรับโปรเจกต์ Medusa ที่มีการตั้งค่า npm/npx มาตรฐาน
npx skills add https://github.com/medusajs/medusa-agent-skills --skill db-migrateRun Database Migrations
Execute the Medusa database migration command to apply pending migrations.
Use the Bash tool to execute: npx medusa db:migrate
Report the migration results to the user, including:
- Number of migrations applied
- Any errors that occurred
- Success confirmation