What is the info command and what information does it provide?

Beginner

Answer

The info command displays the status of all migrations without applying any changes.
Information provided:

  • Current schema version
  • List of applied migrations
  • Pending migrations
  • Migration status (Success, Failed, Pending)
  • Description and execution details
    Example output:
Version    | Description       | State   
-----------|------------------|----------
1          | Initial schema   | Success
1.1        | Add user email   | Success  
2          | Create orders    | Pending

Usage: flyway info - Essential for understanding migration state before applying changes.