1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

- add DB2 support

/me takes a nap


git-svn-id: file:///svn/phpbb/trunk@8308 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
David M
2008-01-06 13:46:20 +00:00
parent 57645ad5bc
commit 2f08a36062
13 changed files with 2049 additions and 14 deletions

View File

@@ -1605,6 +1605,42 @@ class acp_profile
}
break;
case 'db2':
// We are defining the biggest common value, because of the possibility to edit the min/max values of each field.
$sql = 'ALTER TABLE ' . PROFILE_FIELDS_DATA_TABLE . " ADD \"$field_ident\" ";
switch ($field_type)
{
case FIELD_STRING:
$sql .= ' VARCHAR(255) ';
break;
case FIELD_DATE:
$sql .= 'VARCHAR(10) ';
break;
case FIELD_TEXT:
$sql .= "varchar(32672)";
// ADD {$field_ident}_bbcode_uid VARCHAR2(5) NOT NULL,
// ADD {$field_ident}_bbcode_bitfield NUMBER(11) UNSIGNED";
break;
case FIELD_BOOL:
$sql .= 'smallint ';
break;
case FIELD_DROPDOWN:
$sql .= 'integer ';
break;
case FIELD_INT:
$sql .= 'float ';
break;
}
break;
}
return $sql;