server/__init__.py
changeset 9456 a79e88aad555
parent 9445 65d93a4fd11c
child 9460 a2a0bc984863
equal deleted inserted replaced
9455:62e89e696a3b 9456:a79e88aad555
   282     repo.shutdown()
   282     repo.shutdown()
   283     # reloging using the admin user
   283     # reloging using the admin user
   284     config._cubes = None # avoid assertion error
   284     config._cubes = None # avoid assertion error
   285     repo, cnx = in_memory_repo_cnx(config, login, password=pwd)
   285     repo, cnx = in_memory_repo_cnx(config, login, password=pwd)
   286     repo.system_source.eid = ssource.eid # redo this manually
   286     repo.system_source.eid = ssource.eid # redo this manually
   287     assert len(repo.sources) == 1, repo.sources
       
   288     handler = config.migration_handler(schema, interactive=False,
   287     handler = config.migration_handler(schema, interactive=False,
   289                                        cnx=cnx, repo=repo)
   288                                        cnx=cnx, repo=repo)
   290     # install additional driver specific sql files
   289     # install additional driver specific sql files
   291     handler.cmd_install_custom_sql_scripts()
   290     handler.cmd_install_custom_sql_scripts()
   292     for cube in reversed(config.cubes()):
   291     for cube in reversed(config.cubes()):