api.upgrade of different modules

0 views
Skip to first unread message

Suha Onay

unread,
Sep 16, 2009, 5:39:13 AM9/16/09
to migrate-users
Hi,

I plan to use the migrate.versioning.api to manage the versions of the
tables.

The project has different modules that have their own migrate.cfg
files. The module versions will depend on each other. So, the upgrades
are done version by version by controlling the dependecies.

If the modules of the project are configured as in different
repositories and their versions are whether same or different, does
not matter, it gives an error saying no X table of the first module.
>> sqlalchemy\schema.py", line 914, in column
>> sqlalchemy.exc.NoReferencedTableError: Could not find table 'X' with which to generate a foreign key

If the modules of the project are in the same repository and their
versions are whether same or different, does not matter, the upgrade
scripts do not give error. But the second modules (think there are 2
modules) tables are not created. The migrate_version table has this
modules version and does not have the first modules version in list.

What should I do?

Thanks.

Suha Onay

unread,
Sep 16, 2009, 5:43:00 AM9/16/09
to migrate-users
Note: "...their versions..." means their version tables: version_table
in config

Domen Kožar

unread,
Sep 16, 2009, 1:49:57 PM9/16/09
to migrate-users
Hello,

if I understand correctly you have multiple repositories and you want
to controll them by one version_table. I think this is *supposed* to
work, but not really tested. Can you please paste full traceback of an
error?

thanks, Domen
Reply all
Reply to author
Forward
0 new messages