cakephp / cakephp/phinx

Folder not found on running

Open
#572 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
PHP
Stars
4.5k
Forks
884
PR merge metrics
No merged PRs in 30d

Description

We had the migration folder setup incorrectly (could not be found / didn't exist).

When trying to run a migration, it simply said 'All Done', even though migrations were meant to be done.

Running 'phinx test' showed the error to be the folder was incorrect.

This error should be visible on migrate as well as test if the folder cannot be read rather than being a silent error.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the phinx migrate and phinx test command entry points, then trace how an invalid migration folder is handled. Reproduce the missing-folder setup and compare both commands. Done means both commands report that the folder cannot be read instead of silently reporting success.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.