mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
handle tinyints as integers when using postgresql
This commit is contained in:
parent
134742c2e2
commit
9c8513599b
1 changed files with 1 additions and 0 deletions
|
@ -259,6 +259,7 @@ function table_column($table, $oldfield, $field, $type='integer', $size='10',
|
|||
$oldfield = '"'. $oldfield .'"';
|
||||
|
||||
switch (strtolower($type)) {
|
||||
case 'tinyint':
|
||||
case 'integer':
|
||||
if ($size <= 4) {
|
||||
$type = 'INT2';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue