views:

31

answers:

0

Does Doctrine 1.2 support importing indexes with Doctrine_Core::generateModelsFromDb() function?

I need to make a migration between 2 database connections, one of them having unique index on 2 fields and one doesn't. And my migration is empty. It looks like Doctrine doesn't support indexes when importing from databae, other than those tied to relationship foreign keys.

$changes = Doctrine_Core::generateMigrationsFromDiff($migrationsPath,
                                                     array('doctrineOld'),
                                                     array('doctrine'));