You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (!$forDrop && !isset($columnNames[$key + 1])) { // if new col is added at last then no need to add 'AFTER' SQL part. This is checked as if next column is present or not
247
+
if (($key === count($columnNames) - 1) && !$forAlter) {
243
248
returnnull;
244
249
}
245
250
246
-
if (array_key_exists($prevColName, $this->newColumns)) {
251
+
// if (!$forDrop && !isset($columnNames[$key + 1])) { // if new col is added at last then no need to add 'AFTER' SQL part. This is checked as if next column is present or not
252
+
// return null;
253
+
// }
254
+
255
+
if (array_key_exists($prevColName, $forDrop ? $this->tableSchema->columns : $this->newColumns)) {
256
+
if (($prevColName === $columnNames[count($columnNames) - 1]) && !$forAlter) {
0 commit comments