| @@ 3023-3030 (lines=8) @@ | ||
| 3020 | } |
|
| 3021 | ||
| 3022 | // Rename the column, if it has been changed |
|
| 3023 | if ($column != $name) { |
|
| 3024 | $status = $this->renameColumn($table, $column, $name); |
|
| 3025 | if ($status != 0) { |
|
| 3026 | $this->rollbackTransaction(); |
|
| 3027 | ||
| 3028 | return [-4, $sql]; |
|
| 3029 | } |
|
| 3030 | } |
|
| 3031 | ||
| 3032 | $f_schema = $this->_schema; |
|
| 3033 | $this->fieldClean($f_schema); |
|
| @@ 322-329 (lines=8) @@ | ||
| 319 | } |
|
| 320 | ||
| 321 | // @@ NEED TO HANDLE "NESTED" TRANSACTION HERE |
|
| 322 | if ($notnull != $oldnotnull) { |
|
| 323 | $status = $this->setColumnNull($table, $column, !$notnull); |
|
| 324 | if ($status != 0) { |
|
| 325 | $this->rollbackTransaction(); |
|
| 326 | ||
| 327 | return -2; |
|
| 328 | } |
|
| 329 | } |
|
| 330 | ||
| 331 | // Set default, if it has changed |
|
| 332 | if ($default != $olddefault) { |
|
| @@ 347-354 (lines=8) @@ | ||
| 344 | } |
|
| 345 | ||
| 346 | // Rename the column, if it has been changed |
|
| 347 | if ($column != $name) { |
|
| 348 | $status = $this->renameColumn($table, $column, $name); |
|
| 349 | if ($status != 0) { |
|
| 350 | $this->rollbackTransaction(); |
|
| 351 | ||
| 352 | return -4; |
|
| 353 | } |
|
| 354 | } |
|
| 355 | ||
| 356 | // The $name and $table parameters must be cleaned for the setComment function. |
|
| 357 | // It's ok to do that here since this is the last time these variables are used. |
|