projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcccea0
)
UpdateDatabase.php
author
Edward
<edward@roojs.com>
Wed, 30 Oct 2013 09:53:55 +0000
(17:53 +0800)
committer
Edward
<edward@roojs.com>
Wed, 30 Oct 2013 09:53:55 +0000
(17:53 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
d25ddec
..
3b680b5
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-325,6
+325,10
@@
class Pman_Core_UpdateDatabase extends Pman
}
+ if (preg_match('#alter\s+table\s+(\`[a-z0-9_]+\`)#i', $l, $m)){
+
+ }
+
// enum value
if ($tbl && preg_match('#alter\s+table\s+#i', $l, $m)) {
@@
-332,11
+336,6
@@
class Pman_Core_UpdateDatabase extends Pman
$extra[] = "CREATE TYPE {$tbl}_{$m[1]}_enum AS {$m[2]};";
continue;
}
-
- if (preg_match('#(\`[a-z0-9_]+\`)#i', $l, $m)){
-
- }
-
}else{
if ($tbl && preg_match('#([\w]+)\s+(enum\([\w|\W]+\))#i', $l, $m)) {