Make sure that all old RSS assets are cleaned up during the switch to the RSS AssetAspect.

This commit is contained in:
Colin Kuskie 2009-07-07 02:00:17 +00:00
parent 9c698f31ff
commit 8fabfdb04c
2 changed files with 3 additions and 0 deletions

View file

@ -144,6 +144,8 @@ sub removeRssCapableAsset {
}
else {
print "\t\tNot used, removing.\n" unless $quiet;
$session->db->write(q|DELETE FROM assetData WHERE assetId IN (SELECT assetId FROM ASSET WHERE className="WebGUI::Asset::RssFromParent")|);
$session->db->write(q|DELETE FROM asset WHERE className = "WebGUI::Asset::RssFromParent"|);
$session->db->write("DROP TABLE RSSCapable");
$session->db->write("DROP TABLE RSSFromParent");
my $rssCapableTemplates = WebGUI::Asset->getRoot($session)->getLineage(['descendants'], {