equal
deleted
inserted
replaced
295 cnx.commit() |
295 cnx.commit() |
296 repo.shutdown() |
296 repo.shutdown() |
297 # re-login using the admin user |
297 # re-login using the admin user |
298 config._cubes = None # avoid assertion error |
298 config._cubes = None # avoid assertion error |
299 repo = get_repository(config=config) |
299 repo = get_repository(config=config) |
|
300 # replace previous schema by the new repo's one. This is necessary so that we give the proper |
|
301 # schema to `initialize_schema` above since it will initialize .eid attribute of schema elements |
|
302 schema = repo.schema |
300 with connect(repo, login, password=pwd) as cnx: |
303 with connect(repo, login, password=pwd) as cnx: |
301 with cnx.security_enabled(False, False): |
304 with cnx.security_enabled(False, False): |
302 repo.system_source.eid = ssource.eid # redo this manually |
305 repo.system_source.eid = ssource.eid # redo this manually |
303 handler = config.migration_handler(schema, interactive=False, |
306 handler = config.migration_handler(schema, interactive=False, |
304 cnx=cnx, repo=repo) |
307 cnx=cnx, repo=repo) |