projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fed2f9b
)
UpdateDatabase.php
author
Edward
<edward@roojs.com>
Wed, 30 Oct 2013 09:55:02 +0000
(17:55 +0800)
committer
Edward
<edward@roojs.com>
Wed, 30 Oct 2013 09:55:02 +0000
(17:55 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
3b680b5
..
6ad7b2d
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-326,7
+326,8
@@
class Pman_Core_UpdateDatabase extends Pman
}
if (preg_match('#alter\s+table\s+(\`[a-z0-9_]+\`)#i', $l, $m)){
-
+ print_r($m);exit;
+ $l = preg_replace('#alter\s+table\s+(\`[a-z0-9_]+\`)#i', "ALTER TABLE {$m[1]}", $l);
}
// enum value