diff --git a/docs/upgrades/upgrade_7.7.8-7.7.9.pl b/docs/upgrades/upgrade_7.7.8-7.7.9.pl index 8862f0298..c51fc0710 100644 --- a/docs/upgrades/upgrade_7.7.8-7.7.9.pl +++ b/docs/upgrades/upgrade_7.7.8-7.7.9.pl @@ -62,7 +62,7 @@ sub repackTemplates { } print "\n\t\tRepacking head tags in assets that use packing, this may take a while..." unless $quiet; - $sth = $session->db->read( "SELECT assetId FROM asset where usePackedHeadTags=1" ); + $sth = $session->db->read( "SELECT distinct(assetId) FROM assetData where usePackedHeadTags=1" ); while ( my ($assetId) = $sth->array ) { my $asset = WebGUI::Asset->newByDynamicClass( $session, $assetId ); next unless $asset;