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