]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/schema.php
Some cleanup on detecting types
[quix0rs-gnu-social.git] / lib / schema.php
index d20bced4a740e056deab2b183c921adf05c643c9..5868627ed74e7ff5bfb02bfbd024d249c3171d65 100644 (file)
@@ -583,6 +583,13 @@ class Schema
 
         return $table;
     }
+
+    function isNumericType($type)
+    {
+        $type = strtolower($type);
+        $known = array('int', 'serial', 'numeric');
+        return in_array($type, $known);
+    }
 }
 
 class SchemaTableMissingException extends Exception