equal
deleted
inserted
replaced
47 |
47 |
48 @classmethod |
48 @classmethod |
49 def _init_repo(cls): |
49 def _init_repo(cls): |
50 super(MigrationCommandsTC, cls)._init_repo() |
50 super(MigrationCommandsTC, cls)._init_repo() |
51 # we have to read schema from the database to get eid for schema entities |
51 # we have to read schema from the database to get eid for schema entities |
|
52 cls.repo.set_schema(cls.repo.deserialize_schema(), resetvreg=False) |
|
53 # hack to read the schema from data/migrschema |
52 config = cls.config |
54 config = cls.config |
53 config._cubes = None |
|
54 cls.repo.fill_schema() |
|
55 # hack to read the schema from data/migrschema |
|
56 config.appid = join('data', 'migratedapp') |
55 config.appid = join('data', 'migratedapp') |
57 config._apphome = cls.datapath('migratedapp') |
56 config._apphome = cls.datapath('migratedapp') |
58 global migrschema |
57 global migrschema |
59 migrschema = config.load_schema() |
58 migrschema = config.load_schema() |
60 config.appid = 'data' |
59 config.appid = 'data' |