The migrate init command generates the .cfmigrations.json file with invalid JSON that causes migrate install (and likely other commands) to fail.
Steps to reproduce
- Run
migrate init
- Inspect the generated
.cfmigrations.json - the port field reads:
- Run
migrate install
Expected behavior
The generated file should contain valid JSON with the placeholder quoted:
Actual behavior
migrate install fails with a JSON parse error:
ERROR (6.3.2+00858)
Invalid Syntax Closing [}] not found
\modules\coldbox-cli\modules\commandbox-migrations\models\BaseMigrationCommand.cfc: line 81
Environment
- commandbox-migrations: 5.3.0