UpdateDatabase.php
authorEdward <edward@roojs.com>
Wed, 30 Oct 2013 06:14:47 +0000 (14:14 +0800)
committerEdward <edward@roojs.com>
Wed, 30 Oct 2013 06:14:47 +0000 (14:14 +0800)
UpdateDatabase.php

index a3fcd74..45fdb7f 100644 (file)
@@ -357,9 +357,10 @@ class Pman_Core_UpdateDatabase extends Pman
                
             }
             
-            $m = array();
+            // CREATE INDEX ..ignore
             if (preg_match('#alter\s+table\s+([a-z0-9_]+)\s+add\s+index\s+([^(]+)(.*)$#i',  $l, $m)) {
-               $l = "CREATE INDEX  {$m[1]}_{$m[2]} ON {$m[1]} {$m[3]}";
+//               $l = "CREATE INDEX  {$m[1]}_{$m[2]} ON {$m[1]} {$m[3]}";
+                continue;
              }
             // ALTER TABLE core_event_audit ADD     INDEX looku
             // CREATE INDEX