anthropics / anthropics/claude-code
[BUG] yii1 bug with migration names
- Ngôn ngữ chính
- Python
- Star
- 145k
- Fork
- 23.1k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
### Preflight Checklist
- [x] I have searched [existing issues](https://github.com/anthropics/claude-code/issues?q=is%3Aissue%20state%3Aopen%20label%3Abug) 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
```shell
```
### 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_
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Start by reproducing the report: ask Claude to generate two Yii1 migrations, then compare their names with migrations created by protected/yiic migrate create. Inspect the migration-generation entry point and Yii1's timestamp parsing; done means two same-second migrations receive distinct names and both are applied.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- php
- Lĩnh vực
- databases
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Sôi nổi
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 52/100