mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
git-svn-id: file:///svn/phpbb/trunk@6958 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
bad991ee82
commit
6e4f7aee05
1 changed files with 2 additions and 1 deletions
|
@ -1026,12 +1026,13 @@ function sql_column_add($dbms, $table_name, $column_name, $column_data)
|
||||||
case 'sqlite':
|
case 'sqlite':
|
||||||
if (version_compare(sqlite_libversion(), '3.0') == -1)
|
if (version_compare(sqlite_libversion(), '3.0') == -1)
|
||||||
{
|
{
|
||||||
|
global $db;
|
||||||
$sql = "SELECT sql
|
$sql = "SELECT sql
|
||||||
FROM sqlite_master
|
FROM sqlite_master
|
||||||
WHERE type = 'table'
|
WHERE type = 'table'
|
||||||
AND name = '{$table_name}'
|
AND name = '{$table_name}'
|
||||||
ORDER BY type DESC, name;";
|
ORDER BY type DESC, name;";
|
||||||
$result = _sql($sql, $errored, $error_ary);
|
$result = $db->sql_query($sql);
|
||||||
|
|
||||||
if (!$result)
|
if (!$result)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue