projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf1c6c8
)
UpdateDatabase.php
author
Edward
<edward@roojs.com>
Wed, 30 Oct 2013 05:53:52 +0000
(13:53 +0800)
committer
Edward
<edward@roojs.com>
Wed, 30 Oct 2013 05:53:52 +0000
(13:53 +0800)
UpdateDatabase.php
patch
|
blob
|
history
diff --git
a/UpdateDatabase.php
b/UpdateDatabase.php
index
93481db
..
72bbcd1
100644
(file)
--- a/
UpdateDatabase.php
+++ b/
UpdateDatabase.php
@@
-314,9
+314,8
@@
class Pman_Core_UpdateDatabase extends Pman
if (preg_match('#create\s+table\s+\`{0,1}([a-z0-9_]+)\`{0,1}#i', $l, $m)) {
$tbl = 'shop_' . strtolower($m[1]);
- if(strtolower($m[1]) == 'user' || strtolower($m[1]) == 'order'){
- $l = preg_replace('#create\s+table\s+([a-z0-9_]+)#i', 'CREATE TABLE shop_\1', $l);
- }
+ $l = preg_replace('#create\s+table\s+\`{0,1}([a-z0-9_]+)\`{0,1}#i', "CREATE TABLE {$tbl}", $l);
+
// $extra[] = "drop table {$tbl};";
}