Migration History Guide
Track and monitor all migration executions in DevSync.AI with complete audit trails.
Accessing History
- Navigate to a scan report with migrations
- Find the migration you want to review
- Click "Show History" button
- View execution history for that migration
Execution Types
Apply
Actually executes the migration on the database. Changes are permanent and affect your database schema.
Dry Run
Validates migration without executing. Useful for testing SQL syntax and checking for errors before making actual changes.
Execution Status
Running
Migration is currently executing. Do not close the page or interrupt the process.
Success
Execution completed successfully. All changes have been applied to the database.
Failed
Execution encountered an error. Check the error message in history details for more information.
Cancelled
Execution was cancelled before completion. No changes were made to the database.
History Details
Each history entry provides comprehensive information about the execution:
Execution Type
Shows whether this was an Apply, Rollback, or Dry Run operation.
Status
Current execution status: Success, Failed, Running, or Cancelled.
Execution Time
How long the execution took, measured in milliseconds.
Affected Rows
Number of database rows modified by the migration (if applicable).
Error Message
Detailed error information if the execution failed.
Timestamps
When the execution started and completed, with relative time indicators.
Auto-Refresh
History automatically refreshes every 2 seconds when there's a "Running" migration. This provides real-time execution progress and updates without manual page refreshes.
Note: The auto-refresh feature ensures you always see the latest execution status without needing to manually refresh the page.