Note: You are currently viewing documentation for Moodle 3.2. Up-to-date documentation for the latest stable version of Moodle is probably available here: XMLDB column types.

Development:XMLDB column types

From MoodleDocs

XML database schema > XMLDB column types


This page will show, once finished, one compatibility matrix of column types for each of the RDBMS under which Moodle is expected to work.

The matrix

XMLDB Type MySQL PostgreSQL Oracle MSSQL
int
BIGINT (>9 digits)
INT (>6 digits)
MEDIUMINT (>4 digits)
SMALLINT (>2 digits)
TINYINT (<=2 digits)
number
NUMERIC
float
FLOAT (< 6 dec. positions)
DOUBLE (>= 6 dec. positions)
char
VARCHAR
text
BIGTEXT
MEDIUMTEXT
TEXT
binary
BIGBLOB
MEDIUMBLOB
BLOB
date with time
DATETIME

Some official links