projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9aa46a7
)
inc/DBSchema/mysql.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 27 Jan 2011 14:27:07 +0000
(22:27 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 27 Jan 2011 14:27:07 +0000
(22:27 +0800)
inc/DBSchema/mysql.php
patch
|
blob
|
history
diff --git
a/inc/DBSchema/mysql.php
b/inc/DBSchema/mysql.php
index
01d3aa4
..
ed43c98
100644
(file)
--- a/
inc/DBSchema/mysql.php
+++ b/
inc/DBSchema/mysql.php
@@
-20,7
+20,7
@@
class MTrackDBSchema_mysql extends MTrackDBSchema_Generic
if (is_array($from->keys)) foreach ($from->keys as $k) {
if (!isset($to->keys[$k->name]) || $to->keys[$k->name] != $k) {
if ($k->type == 'primary') {
- $actions[] = "
DROP CONSTRAINT {$from->name}_pkey
";
+ $actions[] = "
ALTER TABLE{$from->name} DROP PRIMARY KEY
";
} else {
$sql[] = "DROP INDEX $k->name";
}