added style switch for user functions

This commit is contained in:
JT Smith 2005-02-07 03:38:37 +00:00
parent d1f8e2bf20
commit 4f7a7740d7
9 changed files with 36 additions and 9 deletions

View file

@ -755,9 +755,10 @@ $conf->write;
print "\tMiscellaneous other changes.\n" unless ($quiet);
WebGUI::SQL->write("delete from settings where name='snippetPreviewLength'");
WebGUI::SQL->write("delete from incrementer where incrementerId in ('collateralFolderId','themeId','themeComponentId')");
print "\tSetting user function style\n" unless ($quiet);
my ($defaultPageId) = WebGUI::SQL->quickArray("select value from settings where name='defaultPage'");
my ($styleId) = WebGUI::SQL->quickArray("select styleTemplateId from wobject where assetId=".quote($defaultPageId));
WebGUI::SQL->write("insert into settings (name,value) values ('userFunctionStyleId',".quote($styleId).")");

View file

@ -244,4 +244,8 @@ alter table IndexedSearch_docInfo change wobject_groupIdView groupIdView varchar
update USS set sortBy='lineage' where sortBy='sequenceNumber';
delete from settings where name='trackPageStatistics';
drop table pageStatistics;
delete from settings where name='snippetPreviewLength';
delete from incrementer where incrementerId in ('collateralFolderId','themeId','themeComponentId');