projects
/
web.mtrack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03c374f
)
inc/DBSchema/mysql.php
author
Alan Knowles
<alan@akbkhome.com>
Thu, 27 Jan 2011 15:27:17 +0000
(23:27 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Thu, 27 Jan 2011 15:27:17 +0000
(23:27 +0800)
inc/DBSchema/mysql.php
patch
|
blob
|
history
diff --git
a/inc/DBSchema/mysql.php
b/inc/DBSchema/mysql.php
index
afb2dc6
..
ff8f978
100644
(file)
--- a/
inc/DBSchema/mysql.php
+++ b/
inc/DBSchema/mysql.php
@@
-50,7
+50,7
@@
class MTrackDBSchema_mysql extends MTrackDBSchema_Generic
if (is_array($table->keys)) {
- foreach ($table->keys as $k) {
+ foreach ($table->keys as $k
n=>$k
) {
if ($k->type != 'primary') continue;
if ($pri_key !== null) continue;
$sql[] = "\tprimary key (" . join(', ', $k->fields) . ")";