mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-24 19:08:53 +00:00
oops
git-svn-id: file:///svn/phpbb/trunk@7991 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
30f8173709
commit
0d9a8d0159
1 changed files with 3 additions and 3 deletions
|
@ -1445,7 +1445,7 @@ if (version_compare($current_version, '3.0.RC4', '<='))
|
||||||
$db->sql_transaction('begin');
|
$db->sql_transaction('begin');
|
||||||
|
|
||||||
$sql = 'SELECT *
|
$sql = 'SELECT *
|
||||||
FROM ' . STYLES_TEMPLATE_TABLE;
|
FROM ' . STYLES_TEMPLATE_DATA_TABLE;
|
||||||
$result = _sql($sql, $errored, $error_ary);
|
$result = _sql($sql, $errored, $error_ary);
|
||||||
$old_style_rows = array();
|
$old_style_rows = array();
|
||||||
while ($row = $db->sql_fetchrow($result))
|
while ($row = $db->sql_fetchrow($result))
|
||||||
|
@ -1478,7 +1478,7 @@ if (version_compare($current_version, '3.0.RC4', '<='))
|
||||||
|
|
||||||
foreach ($old_style_rows as $return_row)
|
foreach ($old_style_rows as $return_row)
|
||||||
{
|
{
|
||||||
_sql('INSERT INTO ' . STYLES_TEMPLATE_DATA_TABLE . '(' . implode(', ', array_keys($return_row)) . ') VALUES (' . implode(', ', $return_row) . ')');
|
_sql('INSERT INTO ' . STYLES_TEMPLATE_DATA_TABLE . ' ' . $db->sql_build_array('INSERT', $return_row), $errored, $error_ary);
|
||||||
}
|
}
|
||||||
|
|
||||||
$db->sql_transaction('commit');
|
$db->sql_transaction('commit');
|
||||||
|
@ -2619,7 +2619,7 @@ function sql_column_change($dbms, $table_name, $column_name, $column_data)
|
||||||
|
|
||||||
if (!$constraint_exists)
|
if (!$constraint_exists)
|
||||||
{
|
{
|
||||||
$sql_array[] = "ADD '" . $column_data['constraint'] . "'";
|
$sql_array[] = 'ADD ' . $column_data['constraint'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue