Skip to content

Database: Rename column

Matthew McNaney edited this page Jan 28, 2016 · 2 revisions
$db = \Database::getDB();
$tbl = $db->addTable();
$tbl->renameField($tbl->getField('foo'), 'bar');
Clone this wiki locally