phpbb/db/tools/tools.php
Code: Select all
public function update_schema()
{
return array(
'change_columns' => array(
$this->table_prefix . 'reports' => array(
'report_id' => array('ULINT', null, 'auto_increment'),
),
),
);
}
*_id
has been changed since.default_data_type_ids.php
I would not bother about 3.1 as it is EOL next month
I think yes.
Code: Select all
if (phpbb_version_compare(PHPBB_VERSION, '3.2.0', '>='))
{
// your magic
}
else if (phpbb_version_compare(PHPBB_VERSION, '3.1.12', '<='))
{
// your magic
}
else
{
// error -> alpha/beta version of phpBB 3.2.0 not allowed
}
No, please don't. It might cause different database structure for different versions which can cause issues if you are going to depend on migrations later on3Di wrote: ↑Tue Jun 05, 2018 9:16 pmI think yes.
Otherwise you could create a switch based on the phpBB's version.
Something a like, on the fly... not tested. And ugly.Code: Select all
if (phpbb_version_compare(PHPBB_VERSION, '3.2.0', '>=')) { // your magic } else if (phpbb_version_compare(PHPBB_VERSION, '3.1.12', '<=')) { // your magic } else { // error -> alpha/beta version of phpBB 3.2.0 not allowed }
I hadn't thought about it, Paul. Thank you.