protected function adjustContentTypeDiffs(TableDiff $tableDiff, array $protectedTableNames)
    {
        $alias = str_replace($this->prefix, '', $tableDiff->fromTable->getName());
        if (in_array($alias, $protectedTableNames)) {
            $tableDiff->removedColumns = [];
        }
    }
protected function adjustContentTypeDiffs(TableDiff $tableDiff, array $protectedTableNames)
    {
        $alias = str_replace($this->prefix, '', $tableDiff->fromTable->getName());
        if (in_array($alias, $protectedTableNames)) {
            $tableDiff->removedColumns = [];
        }
    }
protected function adjustContentTypeDiffs ( TableDiff $ tableDiff , array $ protectedTableNames ) { $ alias = str_replace ( $ this -> prefix , '' , $ tableDiff -> fromTable -> getName ( ) ) ; if ( in_array ( $ alias , $ protectedTableNames ) ) { $ tableDiff -> removedColumns = [ ] ; } }
Clear 'removedColumns' attribute from ContentType table diffs to prevent accidental data removal.

@param TableDiff $tableDiff
@param array     $protectedTableNames
Clear removedColumns attribute from ContentType table diffs to prevent accidental data removal .