]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/dumpschema.php
Default to not include delete verbs in notice streams
[quix0rs-gnu-social.git] / scripts / dumpschema.php
old mode 100644 (file)
new mode 100755 (executable)
index 2b238f0..9c5e3cf
@@ -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;
 }