mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Merge remote-tracking branch 'EXreaction/ticket/11755' into develop
This commit is contained in:
commit
6e028a5ecc
4 changed files with 1447 additions and 2777 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
1194
phpBB/phpbb/db/schema_data.php
Normal file
1194
phpBB/phpbb/db/schema_data.php
Normal file
File diff suppressed because it is too large
Load diff
|
@ -37,7 +37,16 @@ class phpbb_db_tools
|
||||||
* The Column types for every database we support
|
* The Column types for every database we support
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
var $dbms_type_map = array(
|
var $dbms_type_map = array();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the column types for every database we support
|
||||||
|
*
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
public static function get_dbms_type_map()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
'mysql_41' => array(
|
'mysql_41' => array(
|
||||||
'INT:' => 'int(%d)',
|
'INT:' => 'int(%d)',
|
||||||
'BINT' => 'bigint(20)',
|
'BINT' => 'bigint(20)',
|
||||||
|
@ -278,6 +287,7 @@ class phpbb_db_tools
|
||||||
'VARBINARY' => 'bytea',
|
'VARBINARY' => 'bytea',
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A list of types being unsigned for better reference in some db's
|
* A list of types being unsigned for better reference in some db's
|
||||||
|
@ -308,6 +318,8 @@ class phpbb_db_tools
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->return_statements = $return_statements;
|
$this->return_statements = $return_statements;
|
||||||
|
|
||||||
|
$this->dbms_type_map = self::get_dbms_type_map();
|
||||||
|
|
||||||
// Determine mapping database type
|
// Determine mapping database type
|
||||||
switch ($this->db->sql_layer)
|
switch ($this->db->sql_layer)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue