Merge pull request #3596 from zeroasterisk/2.6

MySQL DbdSource alter field support 'after'
This commit is contained in:
Mark Story 2014-06-25 23:10:29 -04:00
commit e9da7b8f80

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;
}