projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c47833
)
inc/DBSchema/mysql.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 27 Jan 2011 14:27:53 +0000
(22:27 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 27 Jan 2011 14:27:53 +0000
(22:27 +0800)
inc/DBSchema/mysql.php
patch
|
blob
|
history
diff --git
a/inc/DBSchema/mysql.php
b/inc/DBSchema/mysql.php
index
1522b46
..
9235f57
100644
(file)
--- a/
inc/DBSchema/mysql.php
+++ b/
inc/DBSchema/mysql.php
@@
-20,9
+20,9
@@
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[] = "
ALTER TABLE {$from->name}
DROP PRIMARY KEY";
+ $actions[] = "DROP PRIMARY KEY";
} else {
- $
sql[] = "ALTER TABLE {$from->name}
DROP INDEX $k->name";
+ $
actions[] = "
DROP INDEX $k->name";
}
}
}