UpdateDatabase.php
authorEdward <edward@roojs.com>
Wed, 30 Oct 2013 09:55:02 +0000 (17:55 +0800)
committerEdward <edward@roojs.com>
Wed, 30 Oct 2013 09:55:02 +0000 (17:55 +0800)
UpdateDatabase.php

index 3b680b5..6ad7b2d 100644 (file)
@@ -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