Đang tải…
Đang tải…
Create comprehensive migration guides with step-by-step procedures, validation, and rollback strategies
npx claude-code-templates@latest --command documentation/migration-guideCreate comprehensive migration guide: $ARGUMENTS
find . -name "*migration*" -o -name "*upgrade*" | head -5find . -name "*schema*" -o -name "*.sql" | head -3grep -c "dependency\|require\|import" package.json requirements.txt 2>/dev/null || echo "0"Generate systematic migration guide with comprehensive safety measures: $ARGUMENTS
Migration Scope Analysis
Impact Assessment
Prerequisites and Requirements
Pre-Migration Preparation
Step-by-Step Migration Process
Example for Framework Upgrade:
## Step 1: Environment Setup
1. Update development environment
2. Install new framework version
3. Update build tools and dependencies
4. Configure IDE and tooling
## Step 2: Dependencies Update
1. Update package.json/requirements.txt
2. Resolve dependency conflicts
3. Update related libraries
4. Test compatibility
## Step 3: Code Migration
1. Update import statements
2. Replace deprecated APIs
3. Update configuration files
4. Modify build scripts
Breaking Changes Documentation
Example Breaking Change:
### Removed: `oldMethod()`
**Before:**
```javascript
const result = library.oldMethod(param1, param2);
After:
const result = library.newMethod({
param1: param1,
param2: param2
});
Rationale: Improved type safety and extensibility
Configuration Changes
Database Migration (if applicable)
Testing Strategy
Performance Considerations
Security Updates
Deployment Strategy
Common Issues and Troubleshooting
## Common Migration Issues
### Issue: Import/Module Resolution Errors
**Symptoms:** Cannot resolve module 'old-package'
**Solution:**
1. Update import statements to new package names
2. Check package.json for correct dependencies
3. Clear node_modules and reinstall
### Issue: API Method Not Found
**Symptoms:** TypeError: oldMethod is not a function
**Solution:** Replace with new API as documented in step 3
Team Communication and Training
Tools and Automation
Timeline and Milestones
## Migration Timeline
### Phase 1: Preparation (Week 1-2)
- [ ] Environment setup
- [ ] Team training
- [ ] Development environment migration
### Phase 2: Development (Week 3-6)
- [ ] Core application migration
- [ ] Testing and validation
- [ ] Performance optimization
### Phase 3: Deployment (Week 7-8)
- [ ] Staging deployment
- [ ] Production deployment
- [ ] Monitoring and support
Risk Mitigation
Post-Migration Tasks
Validation and Testing
Documentation Updates
Migration Types and Specific Considerations:
Framework Migration (React 17 → 18):
Database Migration (MySQL → PostgreSQL):
Cloud Migration (On-premise → AWS):
Architecture Migration (Monolith → Microservices):
Remember to: