more profile updates

This commit is contained in:
JT Smith 2005-12-07 16:23:47 +00:00
parent 4c2ea84993
commit 39eb753e7e
3 changed files with 44 additions and 3 deletions

View file

@ -24,11 +24,22 @@ start(); # this line required
upgradeRichEditor();
fixCSFaqTemplateAnchors();
updateProfileSystem();
convertDashboardPrefs();
finish(); # this line required
#-------------------------------------------------
sub updateProfileSystem {
print "\tUpdating user profile system.\n" unless ($quiet);
WebGUI::SQL->write("alter table userProfileField change fieldLabel label varchar(255) not null default 'Undefined'");
WebGUI::SQL->write("alter table userProfileField change dataType fieldType varchar(128) not null default 'text'");
WebGUI::SQL->write("alter table userProfileField change dataValues possibleValues text");
WebGUI::SQL->write("alter table userProfileField change dataDefault defaultValues text");
WebGUI::SQL->write("alter table userProfileCategory change categoryName label varchar(255) not null default 'Undefined'");
}
#-------------------------------------------------
sub upgradeRichEditor {
print "\tUpgrade rich editor\n" unless ($quiet);