mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-06 14:35:56 +02:00
[ticket/11171] Moved the DB schema changes to its place
Moved the db changes schema to the place where all the other schema changes are. PHPBB3-11171
This commit is contained in:
parent
73971ef0fa
commit
9eecaa21e3
@ -1123,9 +1123,12 @@ function database_update_info()
|
|||||||
'style_parent_tree' => array('TEXT', ''),
|
'style_parent_tree' => array('TEXT', ''),
|
||||||
),
|
),
|
||||||
REPORTS_TABLE => array(
|
REPORTS_TABLE => array(
|
||||||
'reported_post_text' => array('MTEXT_UNI', ''),
|
'reported_post_text' => array('MTEXT_UNI', ''),
|
||||||
'reported_post_uid' => array('VCHAR:8', ''),
|
'reported_post_uid' => array('VCHAR:8', ''),
|
||||||
'reported_post_bitfield' => array('VCHAR:255', ''),
|
'reported_post_bitfield' => array('VCHAR:255', ''),
|
||||||
|
'reported_post_enable_bbcode' => array('BOOL', 1),
|
||||||
|
'reported_post_enable_smilies' => array('BOOL', 1),
|
||||||
|
'reported_post_enable_magic_url' => array('BOOL', 1),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'change_columns' => array(
|
'change_columns' => array(
|
||||||
@ -2792,22 +2795,6 @@ function change_database_data(&$no_updates, $version)
|
|||||||
}
|
}
|
||||||
$db->sql_freeresult($result);
|
$db->sql_freeresult($result);
|
||||||
|
|
||||||
// PHPBB3-11171: Copy bbcode fields, etc. for reported posts. Add 5 columns to the reports table
|
|
||||||
|
|
||||||
// Add the columns used by these changes
|
|
||||||
$changes['add_columns'] = array(
|
|
||||||
REPORTS_TABLE => array(
|
|
||||||
'reported_post_enable_bbcode' => array('BOOL', 1),
|
|
||||||
'reported_post_enable_smilies' => array('BOOL', 1),
|
|
||||||
'reported_post_enable_magic_url' => array('BOOL', 1)
|
|
||||||
)
|
|
||||||
);
|
|
||||||
$statements = $db_tools->perform_schema_changes($changes);
|
|
||||||
|
|
||||||
foreach ($statements as $sql)
|
|
||||||
{
|
|
||||||
_sql($sql, $errored, $error_ary);
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user