private function createIndex(Table $table, array $columns)
    {
        if (count($columns) > 0) {
            $indexPrefix = "idx_" . RdsDeliveryExecutionService::TABLE_NAME . "_";

            // Index names are limited to 63 characters in PostgreSQL (64 in MySQL)
            $indexName = substr($indexPrefix . implode("_", $columns), 0, 63);

            $table->addIndex($columns, $indexName);
        }
    }
private function createIndex(Table $table, array $columns)
    {
        if (count($columns) > 0) {
            $indexPrefix = "idx_" . RdsDeliveryExecutionService::TABLE_NAME . "_";

            // Index names are limited to 63 characters in PostgreSQL (64 in MySQL)
            $indexName = substr($indexPrefix . implode("_", $columns), 0, 63);

            $table->addIndex($columns, $indexName);
        }
    }
private function createIndex ( Table $ table , array $ columns ) { if ( count ( $ columns ) > 0 ) { $ indexPrefix = "idx_" . RdsDeliveryExecutionService :: TABLE_NAME . "_" ; // Index names are limited to 63 characters in PostgreSQL (64 in MySQL) $ indexName = substr ( $ indexPrefix . implode ( "_" , $ columns ) , 0 , 63 ) ; $ table -> addIndex ( $ columns , $ indexName ) ; } }
Generates index for the given columns

@param Table $table
@param array $columns
@return void
Generates index for the given columns