[devtools] pre_setup_database takes a Connection, not a Session
importConfigParsertry:undo_actions=config.cfgfile_parser.get('MAIN','undo-support',False)exceptConfigParser.NoOptionError:pass# this conf. file was probably already migratedelse:config.global_set_option('undo-enabled',bool(undo_actions))