[BUG] yii1 bug with migration names
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Do not allow the agent to generate migrations (file).
Either create the file yourself via protected/yiic migrate create or require the agent to use this command.
The agent uses the same pattern in the name when generating migrations
m260828_120000
Yii1 checks only 260828_120000 without the suffix. Therefore, 2 migrations created on the same day, even with different names - will not be applied!!
That is, if there is
m260901_120000_add_table.php
m260901_120000_add_column.php
Then only one of them will be executed, because Yii checks only 260901_120000
What Should Happen?
Claude have to generate unique migration hash names instead of the same second parts: m260901_120000_
Error Messages/Logs
Steps to Reproduce
Say Claude to generate 2 migrations and check migration names.
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
2.1.260
Platform
Anthropic API
Operating System
macOS
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_