mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-06 16:56:44 +02:00
- dbal changes
git-svn-id: file:///svn/phpbb/trunk@5130 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -92,13 +92,20 @@ $available_dbms = array(
|
||||
'DELIM' => ';',
|
||||
'COMMENTS' => 'remove_remarks'
|
||||
),
|
||||
'mysql4' => array(
|
||||
'LABEL' => 'MySQL 4.1.x',
|
||||
'mysqli' => array(
|
||||
'LABEL' => 'MySQL 4.1.x (MySQLi)',
|
||||
'SCHEMA' => 'mysql',
|
||||
'MODULE' => 'mysqli',
|
||||
'DELIM' => ';',
|
||||
'COMMENTS' => 'remove_remarks'
|
||||
),
|
||||
'mysql4' => array(
|
||||
'LABEL' => 'MySQL 4',
|
||||
'SCHEMA' => 'mysql',
|
||||
'MODULE' => 'mysql',
|
||||
'DELIM' => ';',
|
||||
'COMMENTS' => 'remove_remarks'
|
||||
),
|
||||
'mssql' => array(
|
||||
'LABEL' => 'MS SQL Server 7/2000',
|
||||
'SCHEMA' => 'mssql',
|
||||
@@ -106,13 +113,6 @@ $available_dbms = array(
|
||||
'DELIM' => 'GO',
|
||||
'COMMENTS' => 'remove_comments'
|
||||
),
|
||||
'msaccess' => array(
|
||||
'LABEL' => 'MS Access [ ODBC ]',
|
||||
'SCHEMA' => '',
|
||||
'MODULE' => 'odbc',
|
||||
'DELIM' => '',
|
||||
'COMMENTS' => ''
|
||||
),
|
||||
'mssql-odbc'=> array(
|
||||
'LABEL' => 'MS SQL Server [ ODBC ]',
|
||||
'SCHEMA' => 'mssql',
|
||||
@@ -1402,6 +1402,7 @@ function connect_check_db($error_connect, &$error, &$dbms, &$table_prefix, &$dbh
|
||||
{
|
||||
case 'mysql':
|
||||
case 'mysql4':
|
||||
case 'mysqli':
|
||||
$sql = "SHOW TABLES";
|
||||
$field = "Tables_in_{$dbname}";
|
||||
break;
|
||||
@@ -1414,13 +1415,6 @@ function connect_check_db($error_connect, &$error, &$dbms, &$table_prefix, &$dbh
|
||||
$field = "name";
|
||||
break;
|
||||
|
||||
case 'msaccess':
|
||||
$sql = 'SELECT * FROM MSysObjects
|
||||
WHERE Type = 1
|
||||
AND Name Not Like "MSys*"';
|
||||
$field = "Name";
|
||||
break;
|
||||
|
||||
case 'postgres':
|
||||
$sql = "SELECT relname
|
||||
FROM pg_class
|
||||
|
@@ -1407,12 +1407,6 @@ ALTER TABLE [phpbb_ranks] WITH NOCHECK ADD
|
||||
CONSTRAINT [DF_ranks__rank_special] DEFAULT (0) FOR [rank_special]
|
||||
GO
|
||||
|
||||
ALTER TABLE [phpbb_ratings] WITH NOCHECK ADD
|
||||
CONSTRAINT [DF_rating_post_id] DEFAULT (0) FOR [post_id],
|
||||
CONSTRAINT [DF_rating_user_id] DEFAULT (0) FOR [user_id],
|
||||
CONSTRAINT [DF_rating_rating] DEFAULT (0) FOR [rating]
|
||||
GO
|
||||
|
||||
ALTER TABLE [phpbb_reports] WITH NOCHECK ADD
|
||||
CONSTRAINT [DF_report_reason_id] DEFAULT (0) FOR [reason_id],
|
||||
CONSTRAINT [DF_report_post_id] DEFAULT (0) FOR [post_id],
|
||||
|
Reference in New Issue
Block a user