System Migrations
Track and manage database migrations that update the database structure.
⚠️ Developer Access Only
This page is only accessible to users with developer privileges.
Overview
Migrations update database structure as the application evolves. Track which migrations have run and manage pending migrations.
Page Layout
- Migration Status - Overview
- Applied Migrations - Completed migrations
- Pending Migrations - Not yet applied
- Run Migration - Execute pending
Migration Information
| Field | Description |
|---|---|
| Migration Name | Identifier (usually dated) |
| Description | What changes it makes |
| Status | Applied/Pending |
| Applied At | When executed |
| Duration | Execution time |
Common Tasks
Viewing Migration Status
- Go to Developer → Tools → System Migrations
- View applied migrations
- Check for pending migrations
- Review migration history
Running Pending Migrations
- View pending migrations
- Review what each will do
- Click Run Migrations
- Monitor progress
- Verify changes
Viewing Migration Details
- Click on migration
- View:
- Full description
- SQL changes
- Execution log
- Any errors
Migration Status
| Status | Meaning |
|---|---|
| Applied | Successfully executed |
| Pending | Not yet run |
| Failed | Error during execution |
| Rolled Back | Migration reversed |
Best Practices
Before Migrating
- Backup database
- Review migration changes
- Test in staging first
- Schedule maintenance window
During Migration
- Monitor progress
- Watch for errors
- Don't interrupt
After Migration
- Verify data integrity
- Test application
- Monitor for issues
Tips
- Always Backup - Before any migration
- Test First - Run in staging
- Schedule Carefully - During low usage
- Keep History - Track all migrations
- Rollback Plan - Know how to reverse
Related Pages
- Seed Tracking - Initial data
- Database Tables - View structure
💡 Note: Migrations are critical operations. Always ensure proper backups before running.
