public deleteColumn ( ) : void | ||
Результат | 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() && $this->getMetaModel()->getServiceContainer()->getDatabase()->fieldExists($this->getColName(), $this->getMetaModel()->getTableName(), true)) {
TableManipulation::dropColumn($this->getMetaModel()->getTableName(), $this->getColName());
}
}