lots of minor changes and bug fixes

This commit is contained in:
JT Smith 2006-04-18 18:33:53 +00:00
parent cf50652604
commit 095d0a7dfd
5 changed files with 27 additions and 13 deletions

View file

@ -49,10 +49,17 @@ updateMatrix();
updateFolder();
addRichEditUpload();
updateArticle();
updateScratch();
installSQLForm();
finish($session); # this line required
#-------------------------------------------------
sub updateScratch {
print "\tIncreasing size of scratch variables.\n";
$session->db->write("alter table userSessionScratch change value value text");
}
#-------------------------------------------------
sub updateArticle {
print "\tAllowing articles to have direct attachments.\n";
@ -929,6 +936,7 @@ EOT
$asset->addRevision({template=>$template});
}
#-------------------------------------------------
sub installSQLForm {
print "\tInstalling SQLForm tables.\n" unless ($quiet);
@ -1001,6 +1009,7 @@ ENDOFQUERY5
$session->db->write("insert into SQLForm_regexes (regexId, name, regex) values ('defaultUnsigned', 'Unsigned integer', '^\\\\d+\$')");
$session->db->write("insert into SQLForm_regexes (regexId, name, regex) values ('defaultSigned', 'Signed integer', '^-?\\\\d+\$')");
$session->db->write("insert into SQLForm_regexes (regexId, name, regex) values ('defaultFloat', 'Floating point number', '^-?\\\\d+(\\.\\\\d+)?\$')");
$session->config->addToArray("assets","WebGUI::Asset::Wobject::SQLForm");
}