yiisoft / yiisoft/db-migration
Add change() method to migrations
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 32
- Forks
- 18
- Avg merge
- 22h 18m
- Merged PRs (30d)
- 2
Description
The idea is to implement the same code as in up() and determine how to roll back migration based on it. Migration in this case should be like a query and a builder that has two modes: up and down.
It already exists in some third party libs such as https://phinx.org/
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing how migrations currently implement the up() and down() modes in this package, then compare the approach with the referenced Phinx library. The issue does not name files, tests, or a defined completion criterion; done would require agreeing on the change() API and its rollback behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- database
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100