Does Doctrine 1.2 support importing indexes with Doctrine_Core::generateModelsFromDb function?
Posted
by Coagulant
on Stack Overflow
See other posts from Stack Overflow
or by Coagulant
Published on 2010-05-28T07:17:07Z
Indexed on
2010/05/28
7:21 UTC
Read the original article
Hit count: 149
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'));
© Stack Overflow or respective owner