Fix a typo in the upgrade script.

This commit is contained in:
Colin Kuskie 2009-06-02 21:28:11 +00:00
parent 68e1433b5a
commit 3c655ec2a6

View file

@ -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;