In astpp-upgrade-1.7.2.sql, the line
 ALTER TABLE `fscdr`.`fscdr` ADD INDEX ( `uniqueid` );
doesn't work if it's an Asterisk installation.
Moved to the end of the file, so it doesn't do any harm