fixing upgrade file....
This commit is contained in:
parent
4565e36d65
commit
655a2ff065
1 changed files with 2 additions and 1 deletions
|
|
@ -67,7 +67,8 @@ sub convertDashboardPrefs {
|
||||||
#purge all Fields.
|
#purge all Fields.
|
||||||
my $a = WebGUI::SQL->read("select assetId from asset where className='WebGUI::Asset::Field'");
|
my $a = WebGUI::SQL->read("select assetId from asset where className='WebGUI::Asset::Field'");
|
||||||
while (my ($assetId) = $a->array) {
|
while (my ($assetId) = $a->array) {
|
||||||
WebGUI::Asset::Field->new($assetId)->purge;
|
WebGUI::SQL->write("delete from asset where assetId=.quote($assetId)");
|
||||||
|
WebGUI::SQL->write("delete from assetData where assetId=.quote($assetId)");
|
||||||
}
|
}
|
||||||
unlink("../../lib/WebGUI/Asset/Field.pm");
|
unlink("../../lib/WebGUI/Asset/Field.pm");
|
||||||
WebGUI::SQL->write("DROP TABLE `wgField`");
|
WebGUI::SQL->write("DROP TABLE `wgField`");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue