fix: Forge::dropColumn() seems to always return false.#8931
fix: Forge::dropColumn() seems to always return false.#8931ping-yee wants to merge 9 commits intocodeigniter4:developfrom
Conversation
| throw new DatabaseException( | ||
| 'Failed to drop column. Table: "' . $table | ||
| . '", Column: "' . $columns . '"' | ||
| ); |
There was a problem hiding this comment.
dropColumn() may return false when $this->db->DBDebug is false.
So make this the same, please.
CodeIgniter4/system/Database/Forge.php
Lines 787 to 800 in f60d277
There was a problem hiding this comment.
@ping-yee Can you complete this PR?
We are very close to the completion.
There was a problem hiding this comment.
@kenjis Sorry for the stagnation, I haven’t had much energy to deal with things other than work a while ago.
I modify this right now.
There was a problem hiding this comment.
However, the rector removed the return false line, implying that if sqlExecuteResult is false, the method would still return false.
|
👋 Hi, @ping-yee! |
Description
Fixes #8849
I think return sql execute result directly is a simplest way to fix this issue.
Checklist: