wheels db status
Show the status of database migrations.
Synopsis
Description
The wheels db status
command displays information about the current state of database migrations, showing which migrations have been applied and which are pending.
Options
--format=
Output format. Options are table
(default) or json
.
--pending
Show only pending migrations.
Examples
Basic Usage
Show all migrations in table format:
Output:
Show Only Pending
JSON Output
Output:
Understanding the Output
Table Format
Version: Migration timestamp/version number
Description: Human-readable migration name
Status: Either "applied" or "pending"
Applied At: When the migration was run
Status Colors
Green: Applied migrations
Yellow: Pending migrations
Summary Section
Shows counts of:
Total migrations in the migrations folder
Applied migrations in the database
Pending migrations to be run
Common Scenarios
Check Before Deployment
Verify Migration Applied
CI/CD Integration
Troubleshooting
"No migrations found"
Check that migration files exist in
/db/migrate/
directoryEnsure file naming follows pattern:
YYYYMMDDHHMMSS_Description.cfc
Version Mismatch
If the database version doesn't match expected:
Check migration history in database
Verify no migrations were manually deleted
Consider running
wheels dbmigrate latest
Related Commands
wheels db version
- Show just the current versionwheels dbmigrate latest
- Apply pending migrationswheels db rollback
- Rollback migrationswheels dbmigrate info
- Similar migration information
Last updated
Was this helpful?