private function areColumnsExist(\common_persistence_sql_SchemaManager $schemaManager)
    {
        $columnNames = [
            RdsDeliveryExecutionService::COLUMN_ID,
            RdsDeliveryExecutionService::COLUMN_USER_ID,
            RdsDeliveryExecutionService::COLUMN_DELIVERY_ID,
            RdsDeliveryExecutionService::COLUMN_LABEL,
            RdsDeliveryExecutionService::COLUMN_STATUS,
            RdsDeliveryExecutionService::COLUMN_STARTED_AT,
            RdsDeliveryExecutionService::COLUMN_FINISHED_AT,
        ];

        $tableColumns = array_map(function(Column $column) {
            return $column->getName();
        }, $schemaManager->getColumnNames(RdsDeliveryExecutionService::TABLE_NAME));

        return array_reduce($columnNames, function($areColumnsExist, $column) use ($tableColumns) {
            $areColumnsExist = $areColumnsExist && in_array($column, $tableColumns);

            return $areColumnsExist;
        }, true);
    }
private function areColumnsExist(\common_persistence_sql_SchemaManager $schemaManager)
    {
        $columnNames = [
            RdsDeliveryExecutionService::COLUMN_ID,
            RdsDeliveryExecutionService::COLUMN_USER_ID,
            RdsDeliveryExecutionService::COLUMN_DELIVERY_ID,
            RdsDeliveryExecutionService::COLUMN_LABEL,
            RdsDeliveryExecutionService::COLUMN_STATUS,
            RdsDeliveryExecutionService::COLUMN_STARTED_AT,
            RdsDeliveryExecutionService::COLUMN_FINISHED_AT,
        ];

        $tableColumns = array_map(function(Column $column) {
            return $column->getName();
        }, $schemaManager->getColumnNames(RdsDeliveryExecutionService::TABLE_NAME));

        return array_reduce($columnNames, function($areColumnsExist, $column) use ($tableColumns) {
            $areColumnsExist = $areColumnsExist && in_array($column, $tableColumns);

            return $areColumnsExist;
        }, true);
    }
private function areColumnsExist ( \ common_persistence_sql_SchemaManager $ schemaManager ) { $ columnNames = [ RdsDeliveryExecutionService :: COLUMN_ID , RdsDeliveryExecutionService :: COLUMN_USER_ID , RdsDeliveryExecutionService :: COLUMN_DELIVERY_ID , RdsDeliveryExecutionService :: COLUMN_LABEL , RdsDeliveryExecutionService :: COLUMN_STATUS , RdsDeliveryExecutionService :: COLUMN_STARTED_AT , RdsDeliveryExecutionService :: COLUMN_FINISHED_AT , ] ; $ tableColumns = array_map ( function ( Column $ column ) { return $ column -> getName ( ) ; } , $ schemaManager -> getColumnNames ( RdsDeliveryExecutionService :: TABLE_NAME ) ) ; return array_reduce ( $ columnNames , function ( $ areColumnsExist , $ column ) use ( $ tableColumns ) { $ areColumnsExist = $ areColumnsExist && in_array ( $ column , $ tableColumns ) ; return $ areColumnsExist ; } , true ) ; }
Returns that the delivery_executions table columns are already exist in the table or not

@param \common_persistence_sql_SchemaManager $schemaManager
@return bool
Returns that the delivery_executions table columns are already exist in the table or not