Skip to content

migrate init generates invalid JSON: ${DB_PORT} missing quotes in .cfmigrations.json #48

@edyionescu

Description

@edyionescu

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

  1. Run migrate init
  2. Inspect the generated .cfmigrations.json - the port field reads:
port: ${DB_PORT},
  1. Run migrate install

Expected behavior

The generated file should contain valid JSON with the placeholder quoted:

"port": "${DB_PORT}",

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions