]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix notices in dumpschema
authorBrion Vibber <brion@pobox.com>
Fri, 29 Oct 2010 22:11:41 +0000 (15:11 -0700)
committerBrion Vibber <brion@pobox.com>
Fri, 29 Oct 2010 22:11:41 +0000 (15:11 -0700)
scripts/dumpschema.php

index 2b238f0066ce3af99494c9303c3655109e3a3ada..9c5e3cf8b38c2fd9808803ba9c2c8437fcddfb89 100644 (file)
@@ -177,7 +177,7 @@ function dumpDiff($tableName, $filter)
         if ($section == 'fields') {
             // this shouldn't be needed maybe... wait what?
         }
-        $diff = $schema->diffArrays($old, $def, $section, $compare);
+        $diff = $schema->diffArrays($old, $def, $section);
         $chunks = array('del', 'mod', 'add');
         foreach ($chunks as $chunk) {
             if ($diff[$chunk]) {
@@ -205,6 +205,10 @@ function tweakPrimaryKey($def)
         $def['primary keys'] = array('primary key' => $def['primary key']);
         unset($def['primary key']);
     }
+    if (isset($def['description'])) {
+        $def['descriptions'] = array('description' => $def['description']);
+        unset($def['description']);
+    }
     return $def;
 }