1
0
mirror of synced 2024-12-13 06:46:03 +03:00

Ensure unique queries are generated when generating SQL for exporting schema to database.

This commit is contained in:
subzero2000 2008-08-25 19:11:58 +00:00
parent 4661231c64
commit 9c1c82cab9

View File

@ -117,7 +117,7 @@ class Doctrine_Export extends Doctrine_Connection_Module
// Loop over all the sql again to merge the creates and alters in to the same array, but so that the alters are at the bottom
$build = array();
foreach ($connections as $connectionName => $sql) {
$build[$connectionName] = array_merge($sql['create_tables'], $sql['create_sequences'], $sql['alters']);
$build[$connectionName] = array_unique(array_merge($sql['create_tables'], $sql['create_sequences'], $sql['alters']));
}
foreach ($build as $connectionName => $sql) {