cvs: pear /MDB2_Schema/MDB2 Schema.php

From: Date: Thu, 15 Jun 2006 16:48:00 +0000
Subject: cvs: pear /MDB2_Schema/MDB2 Schema.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-40721@lists.php.net to get a copy of this message
lsmith Thu Jun 15 16:48:00 2006 UTC Modified files: /pear/MDB2_Schema/MDB2 Schema.php Log: - hint if dropping a primary constraint http://cvs.php.net/viewcvs.cgi/pear/MDB2_Schema/MDB2/Schema.php?r1=1.74&r2=1.75&diff_format=u Index: pear/MDB2_Schema/MDB2/Schema.php diff -u pear/MDB2_Schema/MDB2/Schema.php:1.74 pear/MDB2_Schema/MDB2/Schema.php:1.75 --- pear/MDB2_Schema/MDB2/Schema.php:1.74 Sun Jun 11 08:00:45 2006 +++ pear/MDB2_Schema/MDB2/Schema.php Thu Jun 15 16:48:00 2006 @@ -42,7 +42,7 @@ // | Author: Lukas Smith <smith@pooteeweet.org> | // +----------------------------------------------------------------------+ // -// $Id: Schema.php,v 1.74 2006/06/11 08:00:45 lsmith Exp $ +// $Id: Schema.php,v 1.75 2006/06/15 16:48:00 lsmith Exp $ // require_once 'MDB2.php'; @@ -1448,7 +1448,7 @@ if (!empty($changes['remove']) && is_array($changes['remove'])) { foreach ($changes['remove'] as $index_name => $index) { if (!empty($index['primary']) || !empty($index['unique'])) { - $result = $this->db->manager->dropConstraint($table_name, $index_name); + $result = $this->db->manager->dropConstraint($table_name, $index_name, !empty($index['primary'])); } else { $result = $this->db->manager->dropIndex($table_name, $index_name); }

« previous php.pear.cvs (#40721) next »