src/Charcoal/Admin/Script/Object/Table/AlterPrimaryKeyScript.php
private function removeColumn(PropertyField $field)
    {
        $source = $this->targetModel()->source();

        $sql = strtr(
            'ALTER TABLE `%table` DROP COLUMN `%key`',
            [
                '%table' => $source->table(),
                '%key'   => $field->ident(),
            ]
        );
        $source->db()->query($sql);

        return $this;
    }
private function removeColumn(PropertyField $field)
    {
        $source = $this->targetModel()->source();

        $sql = strtr(
            'ALTER TABLE `%table` DROP COLUMN `%key`',
            [
                '%table' => $source->table(),
                '%key'   => $field->ident(),
            ]
        );
        $source->db()->query($sql);

        return $this;
    }
private function removeColumn ( PropertyField $ field ) { $ source = $ this -> targetModel ( ) -> source ( ) ; $ sql = strtr ( 'ALTER TABLE `%table` DROP COLUMN `%key`' , [ '%table' => $ source -> table ( ) , '%key' => $ field -> ident ( ) , ] ) ; $ source -> db ( ) -> query ( $ sql ) ; return $ this ; }
Remove the given field.

@param  PropertyField $field The field to remove.
@return self
Remove the given field .