cakephp / cakephp/phinx

How do you namespace migrations?

Open
#1,820 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

The template references $namespaceDefinition, which according to the code comes from some config, somewhere. But the config documentation makes no reference to namespaces anywhere (except aliases, which seems unrelated). How does one actually set the migration namespace with config?

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 linked Migration.template.php.dist and the configuration documentation, then trace where $namespaceDefinition is populated from configuration. Done means documenting the actual configuration setting and updating the configuration page so migration namespaces can be set without relying on unrelated aliases.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.