function applySchemaDefinitionChanges($version)
 {
     if ($version == '049') {
         // We need to ensure that the XML index definition matches the actual name, which might be truncated
         foreach ($this->aDefinitionNew['tables'] as $tableName => &$aTable) {
             foreach ($aTable['indexes'] as $indexName => &$aIndex) {
                 $newIndexName = OA_phpAdsNew::phpPgAdsIndexToOpenads($indexName, $tableName, $this->prefix);
                 if (empty($aIndex['primary']) && $indexName != $newIndexName) {
                     $this->_logOnly('phppgads index detected, renaming ' . $indexName . ' to ' . $newIndexName);
                     $aIndex['was'] = $newIndexName;
                     $this->aDefinitionNew['tables'][$tableName]['indexes'][$newIndexName] = $aIndex;
                     unset($this->aDefinitionNew['tables'][$tableName]['indexes'][$indexName]);
                 }
             }
         }
     }
     return true;
 }