summaryrefslogtreecommitdiff
path: root/lib/schema.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/schema.php')
-rw-r--r--lib/schema.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/schema.php b/lib/schema.php
index d20bced4a..5868627ed 100644
--- a/lib/schema.php
+++ b/lib/schema.php
@@ -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