Author: subzero2000
Date: 2008-08-25 20:11:58 +0100 (Mon, 25 Aug 2008)
New Revision: 4805
Modified:
trunk/lib/Doctrine/Export.php
Log:
Ensure unique queries are generated when generating SQL for exporting schema to
database.
Modified: trunk/lib/Doctrine/Export.php
===================================================================
--- trunk/lib/Doctrine/Export.php 2008-08-25 18:42:53 UTC (rev 4804)
+++ trunk/lib/Doctrine/Export.php 2008-08-25 19:11:58 UTC (rev 4805)
@@ -117,7 +117,7 @@
// 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) {
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"doctrine-svn" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.co.uk/group/doctrine-svn?hl=en-GB
-~----------~----~----~----~------~----~------~--~---