Try to change GroupChat History Settings (This will affect all conferences for that groupchat service)
Follow GroupChat->Groupchat Settings->choose a service (default is conference) -> history settings.
I know that, using Admin UI we can update.
I want something like update in openfire.script
INSERT INTO OFPROPERTY VALUES('xmpp.muc.history.maxNumber',50)
But it was not working.