MySQL DbdSource alter field support 'after'

The ALTER FIELD for MySQL should support 'after' just like the ADD FIELD
This commit is contained in:
alan bount 2014-05-29 11:06:44 -04:00
parent a135378950
commit c273ed8d2c

View file

@ -560,7 +560,11 @@ class Mysql extends DboSource {
if (!isset($col['name'])) {
$col['name'] = $field;
}
$colList[] = 'CHANGE ' . $this->name($field) . ' ' . $this->buildColumn($col);
$alter = 'CHANGE ' . $this->name($field) . ' ' . $this->buildColumn($col);
if (isset($col['after'])) {
$alter .= ' AFTER ' . $this->name($col['after']);
}
$colList[] = $alter;
}
break;
}