/** * Removes the underlying database structure for this field. * * @return void */ public function deleteColumn() { // Try to delete the column. If it does not exist as we can assume it has been deleted already then. if ($this->getColName() && Database::getInstance()->fieldExists($this->getColName(), $this->getMetaModel()->getTableName(), true)) { MetaModelTableManipulation::dropColumn($this->getMetaModel()->getTableName(), $this->getColName()); } }